Page 1 of 1

500 Internal Server Error and more...

Posted: Sat Jan 28, 2006 8:50 pm
by JB
Hello everybody!

I discovered Serendipity few days ago and it's look really cool! but...
I've got a big problem with Serendipity 0.9.1 : after the installation finished i couldn't connect to my blog and the 500 Internal Server Error appear... :cry:
So before to post i've searched on the forum database and some people say that i've to delete or change the .htaccess file so i did it and nothing more because i can make an installation of Serendipity but i can't log in (my passwords are good) and an other error message appear :

I put ***** to mask the name

On the Top :
Warning: session_start(): open(/var/www/sdb/9/4/*****/sess_d616259c7437fdebfb49fc60e518d7e0, O_RDWR) failed: No such file or directory (2) in /var/www/sdb/9/4/*****/serendipity_config.inc.php on line 6

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/sdb/9/4/*****/serendipity_config.inc.php:6) in /var/www/sdb/9/4/*****/serendipity_config.inc.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /var/www/sdb/9/4/*****/serendipity_config.inc.php:6) in /var/www/sdb/9/4/*****/serendipity_admin.php on line 11


On the bottom :
Warning: Unknown(): open(/var/www/sdb/9/4/*****/sessions/sess_d616259c7437fdebfb49fc60e518d7e0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/sdb/9/4/*****/sessions) in Unknown on line 0


I've tried to re-install all the original files and nothing changed!
I've cleared all my bdd and nohing else...

Somebody can help me please???
I'm a french user so i'm very sorry with my poor english : i did my best!
Thanks :oops:

Posted: Sun Jan 29, 2006 12:15 am
by judebert
First guess: the webserver can't write to serendipity_config.inc.php. Try to change the permissions to 777 (everybody can do everything) and see the error changes. If so, try 775 (no writing for strangers), 774 (only reading for strangers), and 770 (strangers can't do anything), which are slightly more secure. If you can get to 750 or 700, that's most secure.

Try 777 first, and let us know what happens.

Posted: Sun Jan 29, 2006 12:41 am
by Guest
I tried to change the permission to 777 and when i want to install serendipity i always have the same error message... : nothing changed
One question : when i changed the permission of serendipity_config.inc.php and i want to see if the permission has been done the files attributes are on the default. Is it normal?
My provider is Free, my database is actived, i tried with other Blog system and i never had this kind of problem.
I forgot to say that the blog is (will be lol) on the root.

Posted: Sun Jan 29, 2006 2:52 am
by judebert
Serendipity on the root is not a problem.

Sounds like your provider isn't allowing you to change the permissions. Either that, or your browser is caching the old page. Are you working through a browser interface or FTP? Maybe try 775?

In any case, I'm barking up the wrong tree. Serendipity is actually having problems with sessions. This line:
<code>Warning: session_start(): open(/var/www/sdb/9/4/*****/sess_d616259c7437fdebfb49fc60e518d7e0, O_RDWR) failed: No such file or directory (2) in /var/www/sdb/9/4/*****/serendipity_config.inc.php on line 6 </code>
says it's trying to open blah/blah/blah/sess_whatever, and failing. It's possible your webserver doesn't have write access to that directory, but unlikely. Check the directory permissions anyway.

Can you access the admin page?

Posted: Sun Jan 29, 2006 3:01 am
by judebert
In This post, Garvin mentions that the session.save_path must point to a writable directory. He's having virtually the same problem as you.

In another post, Garvin tells a fella with exactly your problem that session support isn't enabled in his PHP.

Were your other blogs PHP blogs? Your provider ought to be able to fix this.

Posted: Mon Jan 30, 2006 1:37 am
by Guest
I try to contact the hoster of my database about the writable access of the directory.
My webserver seem doesn't have write access to that directory searching on the web with users whp have the same problem confim what you said.
I post a request on the official forum of my provider about that.

Thanks for your fast support and if the problem stay or the solution isn't found i will post here again! :wink: