turnermm
Did you use filezilla to create the data/cache? If so, filezilla created the directory without write permission for the web server. All of the data directories and the conf directory have to be writable to the web server. So, too, the plugins directory if you plan to use the plugin manager to install plugins.
hpswag731
no i didn't use filezilla to create the data/cache. i just used it for transferring files, i didn't create anything using filezilla
turnermm
In any event, check ownership and permissions of the relevant directories.
hpswag731
So I installed a new one and transferred my dokuwiki files to another server, I copied just both the conf & data folders. All files are imported properly, I don't have any problems on that. But my only problem is that I can't log in, so I found this forum (
https://forum.dokuwiki.org/thread/2778) and is now able to login using the second answer. So all my files are good and I can log in.
Now my new problem is that I can't create, edit, upload files/pages. How can I set back the permissions from edit, create, upload instead of just 'read'?
How do you think I should repair that? I just this one more time and I will be off. Please, thank you
turnermm
What permissions do you have for conf/acl.auth.php and what is its contents? Also who are the users in your users.auth.php
and is there a user who is an admin?
hpswag731
This is what's inside my acl.auth.php
# acl.auth.php
# <?php exit()?>
# Don't modify the lines above
#
# Access Control Lists
#
# Auto-generated by install script
# Date: Tue, 14 Apr 2009 16:01:55 +0530
* @ALL 0
* @user 8
and the users in my users.auth.php is just me, admin, only one.
ach
It looks more like some file permissions are messed up. See
https://www.dokuwiki.org/install:permissions
hpswag731
but i didn't touch any of the file permissions, i left it as is.
hpswag731
what does "writable by the web process" means?
and on the acl.auth, what does
@ALL 0
@user 8
means? why is ALL set to 0 and user set to 8??
hpswag731
ok so i fixed the file permissions.
the only thing i still can't do is that i can edit the pages.
on the access control list management i looked at the permissions for the user admin,
and it says,
"User admin currently has the following permissions in namespace dokuwiki: Read, Edit, Create, Upload, Delete.
Note: The selected group or user has always full permissions because it is configured as superuser"
If it's like that why can't I still edit or create new pages? :(
turnermm
If you set @ALL to 0, then no one without permission can READ the pages. If you want people to have read access, then set @ALL to 1.
If you can't edit the pages and you are indeed the superuser and have superuser access, then it must mean that your permissions for data/pages are incorrect. data/pages must be writeable by the web server.
I don't know what you did when you installed "a new one". You should start from scratch. Load the DW files on your new server and run install.php. Go through all the steps required there. Then you will be a superuser with permission to read, write, delete, and upload. Do not overwrite the new configuration files. If you have config data from a previous installation, then recreate that data non-destructively on this new install. If you had other users and other permission settings, you can append their config data to the new config files, but make backups before you do this and don't delete anything from the new config files.
hpswag731
I used softaculous to install a new dokuwiki in my new server. All the two one I installed are corrupted and the last one i installed is working, the only thing I need to fix is that I should be able to do the admin permissions like i used to in my previous server.
I didn't run the install.php because like i said i used softaculous auto installer to install the dokuwiki.
turnermm
Never heard of it and don't know what it does and/or knows about Dokuwiki. The fact t hat it corrupted two other installs indicates that it doesn't know enough.
Otherwise, the only thing I can think of is what I said above:
If you can't edit the pages and you are indeed the superuser and have superuser access, then it must mean that your permissions for data/pages are incorrect. data/pages must be writeable by the web server.
hpswag731
No I don't think it's because of the softaculous install, the installation were perfect. It just got corrupted when I started transferring files. I compared the file permissions from my previous server to the new server, I compared every folder, every page, every data. It's all the same, I don't know what else to do. :(
I even tried setting the permissions to 777 but I still can't edit the pages so I turn it back to the default.
turnermm
I can only repeat:
You should start from scratch. Load the DW files on your new server and run install.php. Go through all the steps required there. Then you will be a superuser with permission to read, write, delete, and upload. Do not overwrite the new configuration files. If you have config data from a previous installation, then recreate that data non-destructively on this new install. If you had other users and other permission settings, you can append their config data to the new config files, but make backups before you do this and don't delete anything from the new config files.
If you insist on using softalicious, then you can still follow the steps after the install as described above.
If before you edit the config files you cannot read,write,edit, and upload as superuser, then there is something weird going on on the server. If it works, then try testing: you can try adding to the newly created config files gradually (you've backed them up) and see where things break down.
ach
hpswag731:1345649713 wrote
but i didn't touch any of the file permissions, i left it as is.
That could exactly be the problem. Maybe the new server needs different permissions. It's most likely that you need to change the *ownership* of the files! What is the user/group of the files that you copied over and what is the user/group of your new web server?
ach
Oh, and try to first add a ?do=check to your wiki's URL to check if it shows any errors.
turnermm
That could exactly be the problem. Maybe the new server needs different permissions. It's most likely that you need to change the *ownership* of the files! What is the user/group of the files that you copied over and what is the user/group of your new web server?
Good point. But it's puzzling to me why this user wouldn't start with a fresh install and if that worked then add on elements one at a time to locate the problem.
hpswag731
I can edit the files now! :D Thank You for the do=check I saw my errors and I fixed it. BUT there's no media manager, I can't upload anything.
To answer your question, the user/group of the previous one is admin, user and the user/group of the new one is user, admin.
hpswag731
how do you "run" the install.php?
I'm sorry for the question it seems dumb, I really have no clue with it.