Page 1 of 1

failed to open stream: Permission denied after installation

Posted: Sat Dec 04, 2004 3:30 am
by Guest
I have installed serendipity on my debian (knoppix 3.4 on hd) box, running mysql 3.23.56, apache 1.3.31 and php 4.3.34. I have adjusted the serendipity folder per the README by chown -R nobody serendipity/ and then chmod 744 serendipity/

I get the following when trying to open serendipity now:

Code: Select all

Warning: main(/var/www/serendipity/bundled-libs/XML/RPC.php): failed to open stream: Permission denied in /var/www/serendipity/serendipity_functions.inc.php on line 9

Warning: main(): Failed opening '/var/www/serendipity/bundled-libs/XML/RPC.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/serendipity/serendipity_functions.inc.php on line 9

Fatal error: Call to a member function on a non-object in /var/www/serendipity/serendipity_plugin_api.php on line 408
I would guess its a 'permission issue' but, I have NO idea.
Any help would be greatly appreciated.

Thanks

Jerry

ibrewale

Posted: Sat Dec 04, 2004 3:31 am
by ibrewale
I was listed as guest, but I have registered...guess I wasnt logged back in.
ibrewale.

Thanks

Jerry

ibrewale

Posted: Sat Dec 04, 2004 4:12 am
by ibrewale
I did get it to work, I had to chmod 777 serendipity/ though.


Jerry

Posted: Thu Dec 23, 2004 6:14 am
by Westpoint
I have the same problem as Jerry, but I need to CHMOD all directories AND files to 777 or I get these errors.

Why?

- Vincent

Posted: Thu Dec 23, 2004 6:15 am
by Westpoint
sorry, not the files, my fault, but all dirs have to be 777.

Hmm

Posted: Thu Dec 23, 2004 6:36 am
by mgroeninger
I'm not a unix guy... but I've been around a bit...
I have never run knoppix, though...

chmod 744 sets owner to read,write,execute and group and world to only read....
chmod 777 gives everyone full permissions...

This would seem to indicate that knoppix does not use the user nobody to run apache under...

You can dig into the apache conf file and look for something like this:

Code: Select all

User somename
Group somename
Then try:

Code: Select all

chown -R somename serendipity/
And set the permissions back with chmod 744..

I believe that knoppix uses the user "www-data" to run the webserver, though...

So you might try:

Code: Select all

chown -R www-data serendipity/
chmod 744 serendipity/ 
If someone knows more about knoppix and apache, please post!!

Matt