hpswag731
How exactly can I copy the "data" into my new server? I'm clueless.
Thanks.
flam
Just copy the data folder in your new wiki.
hpswag731
that's what i did but after copying, i had an error saying
Dokuwiki Setup Error
The mediaolddir ('media_attic') does not exist, isn't accessible or writable. You should check your config and permission settings.
hpswag731
now the error is
DokuWiki Setup Error
The mediametadir ('media_meta') does not exist, isn't accessible or writable. You should check your config and permission settings.
flam
Check the owner of the folders/files, if you copied the files as root you should change the owner to apache or www-data, or whatever your user for the webserver is. (chown)
If the owner is okay, check the permissions, it should be writable by the webserver user. (chmod)
If you copy the files via FTP the permissions are not copied from the source.
Read this for details about the permissions:
https://www.dokuwiki.org/install:permissions
dominik
hpswag731 wrote
Dokuwiki Setup Error
The mediaolddir ('media_attic') does not exist, isn't accessible or writable. You should check your config and permission settings.
DokuWiki introduced revisions for media files. These new information are stored in these new folder. If you're updating from an previous version just create these folders in the data folder. The new folders are data/media_attic and data/media_meta. After creating these two make sure that they are writable by the webserver like flam said.
hpswag731
I was able to fix the two problems, I used filezilla to copy the directories, now I have a new problem. The website is showing, but I can't log in.
Here's the error.
Writing /home/globalte/domains/koresystems.net/public_html/wiki/data/cache/3/33cf67c4366e1a182fe6468adf968410.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/globalte/domains/koresystems.net/public_html/wiki/data/cache/3/33cf67c4366e1a182fe6468adf968410.metadata failed
Writing /home/globalte/domains/koresystems.net/public_html/wiki/data/meta/start.meta failed
Writing /home/globalte/domains/koresystems.net/public_html/wiki/data/cache/3/33cf67c4366e1a182fe6468adf968410.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/globalte/domains/koresystems.net/public_html/wiki/data/cache/3/33cf67c4366e1a182fe6468adf968410.xhtml failed
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.