Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd September 2009, 20:55
Leftblank Leftblank is offline
Junior Member
 
Join Date: Apr 2007
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
Default ISPConfig trouble, mod_php not working

I suppose these two issues are connected; I noticed that after following the server guide for ISPConfig on Ubuntu 9.04 PHP works fine as long as I'm not using mod_php for the sites. In case I do pick mod_php, the following is generated:

Code:
[Thu Sep 03 19:30:03 2009] [error] [client 82.168.xx.xx] SoftException in Application.cpp:217: File "/var/www/clients/client2/web2//web/index.php" is not in document root of Vhost "/var/www/test.leftblank.nl/web"
[Thu Sep 03 19:30:03 2009] [error] [client 82.168.xx.xx] Premature end of script headers: index.php
When I try to run a PHP file dropped in my /var/www folder, (such as phpinfo() I receive the following similar, but not equal errors;
Code:
[Thu Sep 03 19:41:55 2009] [error] [client 82.168.xx.xx] SoftException in Application.cpp:296: UID of script "/var/www/index.php" is smaller than min_uid
[Thu Sep 03 19:41:55 2009] [error] [client 82.168.xx.xx] Premature end of script headers: index.php
In addition to this, phpMyAdmin is nonfunctional, when clicking the link a funky 'download file' dialog is opened with an empty input, so apparently Apache is not delivering that one either. The problem here is though that I'm unable to find records of this anywhere; the requests do show up in the access.log, but no errors are written in any of the errorlogs. My guess is that this is related to the mod_php not working.
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2009, 20:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

Please update to the latest ISPConfig 3.0.1.4 release, change a setting in the website like quota and click on save, then wait a few minutes and test again.

The info.php file in /var/www does not work because it belongs to the wrong user, chown it to www-data user and group.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd September 2009, 22:44
Leftblank Leftblank is offline
Junior Member
 
Join Date: Apr 2007
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Please update to the latest ISPConfig 3.0.1.4 release, change a setting in the website like quota and click on save, then wait a few minutes and test again.

The info.php file in /var/www does not work because it belongs to the wrong user, chown it to www-data user and group.
Thanks, I updated to the last version right now, though the same errors happen. Chowning the php file in the root dir didnt help sadly, and for my testpage the following shows up again:
Code:
[Thu Sep 03 21:44:29 2009] [error] [client 82.168.x] SoftException in Application.cpp:217: File "/var/www/clients/client1/web2//web/index.php" is not in document root of Vhost "/var/www/test.leftblank.nl/web"
[Thu Sep 03 21:44:29 2009] [error] [client 82.168.x] Premature end of script headers: index.php

Last edited by Leftblank; 3rd September 2009 at 22:46.
Reply With Quote
  #4  
Old 3rd September 2009, 23:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

Which exact settings do you have enabled for the site?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd September 2009, 23:46
Leftblank Leftblank is offline
Junior Member
 
Join Date: Apr 2007
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
Default

No custom settings, everything disabled except for a big enough quota, mod_php and 'active'.
Reply With Quote
  #6  
Old 3rd September 2009, 23:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

Which Linux distribution and which exact ispconfig version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 3rd September 2009, 23:53
Leftblank Leftblank is offline
Junior Member
 
Join Date: Apr 2007
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Which Linux distribution and which exact ispconfig version.
Ubuntu 9.04 and ISPConfig 3.0.1.4 (stable one from SourceForge)
Reply With Quote
  #8  
Old 4th September 2009, 00:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

I'am not able to reproduce this on debian. Are there any errors in the system log of the monitor or are any jobs left in the jobqueue?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 4th September 2009, 09:51
Leftblank Leftblank is offline
Junior Member
 
Join Date: Apr 2007
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
I'am not able to reproduce this on debian. Are there any errors in the system log of the monitor or are any jobs left in the jobqueue?
There are quite some odd logs available sadly, but most unrelated. Maillog is spammed by the following every few minutes
Code:
Sep 4 08:27:51 s1 postfix/error[9418]: 4D09610E94F4: to=, orig_to=, relay=none, delay=139070, delays=139070/0.17/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
System log shows the following every 5 minutes:
Code:
Sep 4 08:30:01 s1 pure-ftpd: (?@__1) [INFO] New connection from __1
Sep 4 08:30:01 s1 pure-ftpd: (?@__1) [INFO] Logout.
And the ISPC log complained about the php_admin values in the vhosts, which I commented in the template now to be able to start Apache, the search noted that this could be because PHP is not installed, but that's not the case at all sadly.

Possibly related is the memory usage, it's up to 920MB while nothing is running on the box. Ps aux shows 6+ processes by courier, a whole lot "error -n retry -t unix -u -c" and "bounce -z -n defer -t unix -u -c" running under the postfix user and like 30 times /usr/lib/cgi-bin/php with -d magic_quotes_gpc=off. It seems like clamav and spamd are using the most memory though.

Last edited by Leftblank; 4th September 2009 at 09:55.
Reply With Quote
  #10  
Old 4th September 2009, 11:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
 
Default

To the mail log: amavisd is not running and without amavisd you will not be able to reaceive or send emails. Please run:

/etc/init.d/amavis start

and check the mail log again.

The entry in the system log are fine.

Quote:
And the ISPC log complained about the php_admin values in the vhosts, which I commented in the template now to be able to start Apache, the search noted that this could be because PHP is not installed, but that's not the case at all sadly.
Then you really dont have mod_php installed and this explains the problems with php in your sites too. Please make sure that you followed the perfect server instllation guide for ispconfig 3 and ubuntu to the line or your system will not work properly.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
mod_php

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
SPF not working on IspConfig 3 bern Installation/Configuration 18 28th January 2013 21:48
IspConfig login trouble scenic2 Installation/Configuration 9 28th January 2009 12:24
E-mail domain not working with ISPConfig fdsg72-lux Installation/Configuration 6 14th November 2008 03:57
ISPConfig Roadmap till Developers' Forum 26 10th June 2007 23:38
ISPConfig configuration or ipcop firewall being the cuase of trouble? AZMel Installation/Configuration 6 15th March 2006 01:20


All times are GMT +2. The time now is 03:51.


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