SuExec + FastCGI + Joomla Cookies disables Problem

I have PHP globally turned off, and session.save_path set to /tmp in my php.ini file.

Site configured to run with PHP suexec and Fast-CGI.

I've uploaded joomla files through ftp but when I try to install Joomla I get something like:

"Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server's session.save_path. If this is the case, please consult your hosting provider if you don't know how to check or fix this yourself."

I searched for this problem and I saw some users that solved this by changing the session.save_path to /tmp. I did this, restarted httpd but no luck.

I use Centos 5.5.

Any sugestions?

Thanks!!

ps: without suexec I can install Joomla but it can't write the files into the server even if it has ftp mode on (?!)

I searched for this problem and I saw some users that solved this by changing the session.save_path to /tmp. I did this, restarted httpd but no luck.

Click to expand...

Please undo that. The temp directory for the website is inside the website root and it is set as parameter to the php binary in the fcgi starter script by ispconfig automatically and not in the php.ini. The global /tmp dir should not be used as this would allow otherw ebsites to steal cookie data.

ps: without suexec I can install Joomla but it can't write the files into the server even if it has ftp mode on (?!)

Click to expand...

Thats correct, Suexec is required. Otherwise the php scripts wont run under the website user permissions and dont have write access to the website.

Back to your original problem, please check if you get any error in the error.log file of the website.

Seems as if you started the joomla installation without suexec and then switched to suexec without closing the webbrower in the meantime. This causes that joomla has written a session that belongs to the apache user first and then is not able to change it as web user.

There are several solutions:

a) Close all browser windows.
b) run:

rm -f /var/www/clients/client2/web2/tmp/sess_*

to remove all sessions.

Had to tail the error.log 'cause it was causing memory crashing with nano and vi!!

Click to expand...

For logfiles, you should use always tail and not an editor to view it.