Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th April 2011, 17:25
jribeiro jribeiro is offline
Junior Member
 
Join Date: Mar 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default SuExec + FastCGI + Joomla Cookies disables Problem

Hi there,

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 (?!)
Reply With Quote
Sponsored Links
  #2  
Old 18th April 2011, 17:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,977
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

Quote:
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.
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.

Quote:
ps: without suexec I can install Joomla but it can't write the files into the server even if it has ftp mode on (?!)
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th April 2011, 17:39
jribeiro jribeiro is offline
Junior Member
 
Join Date: Mar 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok! changed php.ini back to original state

Code:
session.save_path = "/var/lib/php/session"
Sorry but how can I check that error log? Sorry...

Ok found the file under:
/var/log/ispconfig/httpd/domain/error.log

opened it with nano (with root user) but the file doen't open or ate least it doesn't present anything!

Last edited by jribeiro; 18th April 2011 at 17:47. Reason: extra info
Reply With Quote
  #4  
Old 18th April 2011, 17:52
jribeiro jribeiro is offline
Junior Member
 
Join Date: Mar 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok error file:

Code:
[Mon Apr 18 16:49:46 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client2/web2/tmp/sess_9b3188cd54e975575d6ba8b37f0467d7, O_RDWR) failed: Permission denied (13) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 411
[Mon Apr 18 16:49:46 2011] [warn] mod_fcgid: stderr: PHP Warning:  include() [<a href='function.include'>function.include</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web2/web:/var/www/clients/client2/web2/tmp:/var/www/sostudent.com/web:/srv/www/sostudent.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web2/web/libraries/joomla/application/component/view.php on line 606
[Mon Apr 18 16:49:46 2011] [warn] mod_fcgid: stderr: PHP Warning:  require() [<a href='function.require'>function.require</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web2/web:/var/www/clients/client2/web2/tmp:/var/www/sostudent.com/web:/srv/www/sostudent.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web2/web/libraries/joomla/document/html/html.php on line 405
[Mon Apr 18 16:49:46 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: open(/var/www/clients/client2/web2/tmp/sess_9b3188cd54e975575d6ba8b37f0467d7, O_RDWR) failed: Permission denied (13) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 542
[Mon Apr 18 16:49:46 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client2/web2/tmp) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 542
[Mon Apr 18 16:49:48 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client2/web2/tmp/sess_9b3188cd54e975575d6ba8b37f0467d7, O_RDWR) failed: Permission denied (13) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 411
[Mon Apr 18 16:49:48 2011] [warn] mod_fcgid: stderr: PHP Warning:  require() [<a href='function.require'>function.require</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web2/web:/var/www/clients/client2/web2/tmp:/var/www/sostudent.com/web:/srv/www/sostudent.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web2/web/libraries/joomla/document/html/html.php on line 405
[Mon Apr 18 16:49:48 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: open(/var/www/clients/client2/web2/tmp/sess_9b3188cd54e975575d6ba8b37f0467d7, O_RDWR) failed: Permission denied (13) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 542
[Mon Apr 18 16:49:48 2011] [warn] mod_fcgid: stderr: PHP Warning:  session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client2/web2/tmp) in /var/www/clients/client2/web2/web/libraries/joomla/session/session.php on line 542
Had to tail the error.log 'cause it was causing memory crashing with nano and vi!!
Reply With Quote
  #5  
Old 18th April 2011, 20:54
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,977
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

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.

Quote:
Had to tail the error.log 'cause it was causing memory crashing with nano and vi!!
For logfiles, you should use always tail and not an editor to view it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th April 2011, 21:00
jribeiro jribeiro is offline
Junior Member
 
Join Date: Mar 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Ok. Closed the browser and it all works fine now.

Thanks once again. Problem solved!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
suEXEC problem rbartz General 4 8th April 2013 20:45
SSL Problem vlados Installation/Configuration 8 31st January 2011 13:06
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
SuExec compiling qtam0 Server Operation 6 24th September 2006 02:25


All times are GMT +2. The time now is 09:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.