[BlueOnyx:08979] Re: Problem with php-sessions after updates

Klein Joachim j.klein at ibusiness.at
Sat Nov 5 17:48:22 -05 2011


> Ok, I see you're using suPHP for that site, because it has a separate php.ini
> in the site's home directory.
>
> This php.ini is protected with "chattr +i" to prevent that it gets edited.
>
> Do the following:
>
> Make your desired changes to the servers php.ini file (/etc/php.ini). Then
> turn off suPHP for the site and save the changes. Then turn suPHP back on and
> again save the changes. The servers php.ini will then get copied into the
> site's home directory again - including your modification.
>
> Additionally make sure that the directory /var/lib/php/session/ has 777
> permissions:
>
> chmod 777 /var/lib/php/session/
>
> We need that for suPHP to work. Otherwise suPHP enabled sites cannot create
> session cookies, as they cannot write to that directory.
>
Hy to the list
Hy Michael!

Thanks for the fast help.
The problem wasn´t the php.ini.
It was the permissions on the folder /var/lib/php/sessions.
I think the update have changed it.
Now it works again.

Thanks
Joachim




More information about the Blueonyx mailing list