I am new to phpwiki so bear with me. I am attempting to migrate a phpwiki installation form one serevr to another. I zipped up the whle thing at the old place, unzipped at the new one.
Now I get this error when trying to open at the new place
Warning: dba_open(./db/wikipagesdb): failed to open stream: Permission denied in /usr/www/users/USERNAME/wiki/lib/dbalib.php on line 58
I compared the permission on the 'wikipagesdb' and it is 544 on both server. The only difference I see that on the old server it is owned by 'apache', while at the new one by 'USERNAME'. So my question does it have to be owned by root/apache? If yes I am in trouble, because I don't have the right to chown to it. Or what am I missing? Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BTW: I changed the permissions to 777 for all files in the ../db directory and that way I avoided the error mentioned above, but now the index.php page simply doesn't load. It just keeps loading and doesn't even time out. I waited two minutes. Tested several times. I don't get error message and this way it is difficult for me troubleshoot.
(My whole phpwiki is under .htaccess, so that provides some security against the highly insecure 777 permissions.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, that's what I was afarid of. If it is on an ISP's shared host there is no (or very little) chance that the ISP will allow that kind of access. :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am new to phpwiki so bear with me. I am attempting to migrate a phpwiki installation form one serevr to another. I zipped up the whle thing at the old place, unzipped at the new one.
Now I get this error when trying to open at the new place
Warning: dba_open(./db/wikipagesdb): failed to open stream: Permission denied in /usr/www/users/USERNAME/wiki/lib/dbalib.php on line 58
I compared the permission on the 'wikipagesdb' and it is 544 on both server. The only difference I see that on the old server it is owned by 'apache', while at the new one by 'USERNAME'. So my question does it have to be owned by root/apache? If yes I am in trouble, because I don't have the right to chown to it. Or what am I missing? Thank you.
BTW: I changed the permissions to 777 for all files in the ../db directory and that way I avoided the error mentioned above, but now the index.php page simply doesn't load. It just keeps loading and doesn't even time out. I waited two minutes. Tested several times. I don't get error message and this way it is difficult for me troubleshoot.
(My whole phpwiki is under .htaccess, so that provides some security against the highly insecure 777 permissions.)
it has to be owned by the user the webserver is running as. apache, www-user, httpd,
whatever is defined in your httpd.conf
Thanks, that's what I was afarid of. If it is on an ISP's shared host there is no (or very little) chance that the ISP will allow that kind of access. :-(