#1  
Old 27th January 2011, 21:46
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default PHP upgrade broke things

I didnt do the php upgrade myself so im not sure whats happend exactly but its a CentOS 5.5 box on php 5.3.5.

Basically now i have the following problems

squirrlemail complains about a missing config file that is actually there. I cannot see any permissions problems?

phpmyadmin was setup to use http auth, this now will not work I had to change it to cookie and now it does.

php on all websites seems to be broken. I get 500 internal server errors.

I have done upgrade.php in the ispconfig install folder with no change.

I dont even have any log files to post up for this one.. it just doesnt seem to want to work. I cant see anything crazy in the config files.

- Edit, this seems to be an suexec issue

visiting /webmail/ gets me

==> /var/log/httpd/access_log <==
217.xx.xx.x - - [27/Jan/2011:19:51:12 +0000] "GET /webmail/ HTTP/1.1" 200 176 "-" "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"

==> /var/log/httpd/suexec.log <==
[2011-01-27 19:51:12]: uid: (5006/web1) gid: (5008/5008) cmd: php-cgi-starter

and just the websites index.php

==> /var/log/httpd/access_log <==
217.xx.xx.xx - - [27/Jan/2011:19:52:30 +0000] "GET /index.php HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"

==> /var/log/httpd/suexec.log <==
[2011-01-27 19:52:30]: uid: (5006/web1) gid: (5008/5008) cmd: php5-cgi
[2011-01-27 19:52:30]: target uid/gid (5006/5008) mismatch with directory (5006/5008) or program (0/0)

So its some kind of permissions error?

Last edited by Ryanmt; 27th January 2011 at 21:53.
Reply With Quote
Sponsored Links
  #2  
Old 28th January 2011, 09:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Please post the error message that you get in the error.log of a website which is not working. Website errors dont get logged to the global apache error.log as every website ahs its own log.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th January 2011, 14:02
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default

Hi till, the error log for one of the sites is as follows

Quote:
[Thu Jan 27 19:35:58 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:35:58 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
[Thu Jan 27 19:35:58 2011] [error] [client 217.1] File does not exist: /var/www/error/500.html
[Thu Jan 27 19:49:14 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:49:14 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
[Thu Jan 27 19:49:14 2011] [error] [client 217.1] File does not exist: /var/www/error/500.html
[Thu Jan 27 19:49:30 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:49:30 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
[Thu Jan 27 19:49:30 2011] [error] [client 217.1] File does not exist: /var/www/error/500.html
[Thu Jan 27 19:51:06 2011] [error] [client 217.1] PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(config/config.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/kamracing.co.uk/web:/srv/www/kamracing.co.uk/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin) in /usr/share/squirrelmail/index.php on line 15
[Thu Jan 27 19:51:12 2011] [error] [client 217.1] PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(config/config.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/domain.co.uk/web:/srv/www/domain.co.uk/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin) in /usr/share/squirrelmail/index.php on line 15
[Thu Jan 27 19:52:30 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:52:30 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
[Thu Jan 27 19:52:30 2011] [error] [client 217.1] File does not exist: /var/www/error/500.html
[Thu Jan 27 19:56:33 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:56:33 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
[Thu Jan 27 19:56:33 2011] [error] [client 217.1] File does not exist: /var/www/error/500.html
[Thu Jan 27 19:57:04 2011] [error] [client 217.1] suexec policy violation: see suexec log for more details
[Thu Jan 27 19:57:04 2011] [error] [client 217.1] Premature end of script headers: php5-cgi
The upgrade was done using this apparently.

http://rpms.famillecollet.com/enterprise/remi.repo
Reply With Quote
  #4  
Old 29th January 2011, 17:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

IS there a suexec log on your system? Are there any errors in it?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 31st January 2011, 19:46
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
 
Default

Yep, more of the same thing though really

root@server32 ~]# tail /var/log/httpd/suexec.log.1
[2011-01-28 18:19:14]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-28 18:19:16]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-28 20:06:06]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-28 20:09:14]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-28 20:09:47]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-28 20:14:23]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-30 01:17:36]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-30 01:17:37]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-30 01:17:41]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter
[2011-01-30 01:17:44]: uid: (5008/web3) gid: (5008/5008) cmd: php-cgi-starter

with further investigation everything seems to be owned by the correct user so im not sure why its complaining

Last edited by Ryanmt; 31st January 2011 at 20:06.
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
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 22:13
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 14:22
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


All times are GMT +2. The time now is 06:13.


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