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 16th November 2010, 20:40
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default PHP not working on websites (various errors)

Hi everyones,
I've setup my server under Fedora 13 using the tutorial of HowToForge (really good).

I'm a beginner in Linux so it is not always easy to troubleshoot system.

My Ispconfig 3.0.3 run well, FTP / mySQL / Mail / Webmail are running ok but when I try to use a php script on websites created by ISPC i have internal error (500)

I tried Phpsysinfo, he gives me a blank screen and some errors in /var/log/ispconfig/httpd/mywebsite/error.log

Code:
[Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php): failed to open stream: Operation not permitted in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/index.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in Unknown on line 0
[Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  require_once(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php): failed to open stream: Operation not permitted in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Fatal error:  require_once(): Failed opening required '/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34
[Mon Nov 15 12:11:17 2010] [error] [client 193.253.141.66] File does not exist: /var/www/neuro-media.net/web/images/logo2.png, referer: http://forum.hardware.fr/hfr/WindowsSoftware/domaine-sujet_119632_1.htm
[Mon Nov 15 12:11:17 2010] [error] [client 193.253.141.66] File does not exist: /var/www/error/404.html, referer: http://forum.hardware.fr/hfr/WindowsSoftware/domaine-sujet_119632_1.htm
[Mon Nov 15 18:39:30 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/clients/client1/web1/web/info.php on line 3
[Mon Nov 15 18:43:00 2010] [warn] [client 10.0.0.138] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Nov 15 18:43:00 2010] [error] [client 10.0.0.138] Premature end of script headers: admin.php3
[Mon Nov 15 18:43:00 2010] [error] [client 10.0.0.138] File does not exist: /var/www/error/500.html
[Mon Nov 15 23:27:20 2010] [warn] [client 10.0.0.138] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Nov 15 23:27:20 2010] [error] [client 10.0.0.138] Premature end of script headers: admin.php3
[Mon Nov 15 23:27:20 2010] [error] [client 10.0.0.138] File does not exist: /var/www/error/500.html
[Mon Nov 15 23:27:25 2010] [warn] [client 10.0.0.138] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Nov 15 23:27:25 2010] [error] [client 10.0.0.138] Premature end of script headers: admin.php3
[Mon Nov 15 23:27:25 2010] [error] [client 10.0.0.138] File does not exist: /var/www/error/500.html
As you can see it also have a probleme were ERROR pages are not found (seems to be badly created by ISPC)

Can someone try to help me to correct theses errors, it would be great.
Reply With Quote
Sponsored Links
  #2  
Old 18th November 2010, 12:14
itsnedkeren itsnedkeren is offline
Senior Member
 
Join Date: May 2009
Location: Denmark
Posts: 128
Thanks: 32
Thanked 10 Times in 10 Posts
Default

Try running the ISPConfig installer again, just as an upgrade, then choose to reconfigure services.

Quote:
cd /tmp
wget http://www.ispconfig.org/downloads/I...-stable.tar.gz
tar xvfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install
php -q update.php
__________________
Best regards

Jim
Reply With Quote
  #3  
Old 19th November 2010, 14:35
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ok I tried to upgrade to 3.0.3.1 (not re-install 3.0.3) and reconfigure services
and also removed the
Code:
umask=0022
umask=0022
from my suphp.conf (as Falko told someone in a similar topic)

Not realy helped, but after I restarted the whole server, I had some good news.

Phpsysinfo worked for a few minutes (but now it only display "Loading Please wait" )

I will check the log files for more details.
Reply With Quote
  #4  
Old 19th November 2010, 14:43
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

Here are the errors that give me phpsysinfo (shown in IE8, Firefox wont show them )

Code:
PHP throws a error
Level : 2 Message : file_exists(): open_basedir restriction in effect. File(/etc/fedora-release) is not within the allowed path(s): (/var/www/clients/client1/web1/web:/var/www/clients/client1/web1/tmp:/var/www/www.***.net/web:/srv/www/www.***.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client1/web1/web/phpsysinfo/) File : /var/www/clients/client1/web1/web/phpsysinfo/includes/os/class.Linux.inc.php Line : 518
--------------------------------------------------------------------------------
errorHandlerPsi :

Last edited by Toxin; 19th November 2010 at 14:46.
Reply With Quote
  #5  
Old 19th November 2010, 14:54
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

I don't know why but the website adress writen in "PHP open_basedir" was Badly spelt
Code:
/var/www/www.m***.net/web
instead of
Code:
/var/www/www.n***.net/web
Maybe a mistake at my begins with ISP Config.
Reply With Quote
  #6  
Old 19th November 2010, 20:26
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

I try to switch PHP to Fast-CGI in the Website panel and I have the same errors
Code:
PHP throws a error
Level : 2 Message : file_exists(): open_basedir restriction in effect.
When i swith to SuPHP it* works good.


* My test script is phpsysinfo.

Server administration is not as easy that I thought ^^
Reply With Quote
  #7  
Old 20th November 2010, 15:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Your PHP script tries to access files that are outside the open_basedir which isn't allowed. open_basedir is a security measure for servers used by several people so that nobody can access files that he shouldn't see.

http://www.php.net/manual/en/ini.cor...i.open-basedir
__________________
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
  #8  
Old 20th November 2010, 15:51
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

With the same rules, why is it working with suPHP and not fast-CGI ?
Reply With Quote
  #9  
Old 27th November 2010, 15:41
Toxin Toxin is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Back again, I thought that switching to SuPHP would be ok, but I tried to install SimpleInvoice on my website but with SuPHP I have a blank screen without code, so I switched to ModPHP and then it works, but now phpsysinfo is not working anymore.

So Can someone try to help me to find a way to have PHP running well on my computer ?
Reply With Quote
Reply

Bookmarks

Tags
error 500, error.log, 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
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 13:22
php eating cpu shajazzi Server Operation 15 15th August 2007 01:19
Virtual Hosting Not Working stirfry Installation/Configuration 26 7th August 2007 10:53
php on sites not working - fresh install matej Installation/Configuration 2 29th June 2007 19:01
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55


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


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