Fresh Installed but with PHP error on first attempt on login

Hello Admins,

Finally had the courage to build a CENTOS 6.2 linux server and hosted the Gibbon version 12. Installation was smooth and no problem. After install, I then used the first account to login. Nothing happened. I then collected the error logs. Attached here on this discussion are the errors. I’m quite a noob so please be patient. Your help is highly appreciated.

Hi Vicente,

Looks like your session path may not be writeable, which would cause the login errors you’re seeing and is also related to this message from your error log:

[Thu Dec 15 15:02:21 2016] [error] [client xx.xx.xx.xx] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer:

In your server, locate your /var/lib/php/session folder and ensure it has write permissions and also check the ownership, which is often www-data buy may depend on your setup.

Here’s an example of commands that will set ownership to www-data and permissions to 660
chown -R www-data /var/lib/php/session <code class="CodeInline">chmod -R 660 /var/lib/php/session

Wow, this is one I have never seen before. Thanks for providing such a detailed answer!

I think a lot of servers default to the /tmp directory so you usually don’t have to worry about it, but looks like it can vary depending on the setup.