![]() |
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 34Can someone try to help me to correct theses errors, it would be great.:) |
Try running the ISPConfig installer again, just as an upgrade, then choose to reconfigure services.
Quote:
|
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=0022Not 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. |
Here are the errors that give me phpsysinfo (shown in IE8, Firefox wont show them :mad:)
Code:
PHP throws a error |
I don't know why but the website adress writen in "PHP open_basedir" was Badly spelt
Code:
/var/www/www.m***.net/webCode:
/var/www/www.n***.net/web |
I try to switch PHP to Fast-CGI in the Website panel and I have the same errors
Code:
PHP throws a error* My test script is phpsysinfo. Server administration is not as easy that I thought ^^ |
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 |
With the same rules, why is it working with suPHP and not fast-CGI ?
|
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 ? |
| All times are GMT +2. The time now is 13:31. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.