View Full Version : PHP: Scripts dont execute!
mgendys
8th February 2007, 07:21
I have followed the The Perfect Setup - OpenSuSE 10.2 (32-bit) (http://www.howtoforge.com/perfect_setup_opensuse_10.2) instructions, almost word for word.
I use to have a SUSE 10.1 setup about 2 months ago, but that was a temporary test server, which funny enough actually worked.
This installation, which was going to be my webserver, seems to work with HTML but not PHP scripts.
I have tried to reinstall the whole system, I have tried to reinstall the PHP only, and I have read many similar problems and solutions, but with no luck.
The only thing I can come up with is that this might be that there is a bug in ISP Config 2.2.9, because it seems to work with 2.0.9 that I had on the test server, and the same problem occurs if I use SUSE 10.1 with 2.2.8/9.
Is there something I am missing or forgetting to do???
Or is there a simple solution that I have overlooked???
mphayesuk
8th February 2007, 11:15
Have you enabled suexec on the system.. try turning it on/off and then back on/off maybe a restart in between. the next is make sure that the permission ont he file have been set (reset) properly.
I must say that these fixes are for cgi stuff so not sure if the same works for php but its worth ago.
Thanks
mgendys
8th February 2007, 12:10
Have you enabled suexec on the system.. try turning it on/off and then back on/off maybe a restart in between. the next is make sure that the permission ont he file have been set (reset) properly.
I must say that these fixes are for cgi stuff so not sure if the same works for php but its worth ago.
Thanks
1) I have tryed checking the Suexec in the web panel of ISPConfig, I am not sure if there is a manual way of doing it through a script.
2) I restarted the machine and still no luck.
3) Changed the permissions on info.php file that I got from the test.zip on the forums, and still no luck.
4) I have unchecked the Suexec in the web panel.
5) I restarted again, and guess what...
STILL NO LUCK!!!
ANY OTHER IDEAS???
Does anyone know if this is a bug that is in ISPConfig 2.2.8/9 only???
danf.1979
8th February 2007, 13:29
Did you actually enable php for the site? :)
You can do so in the "base" tab.
mgendys
9th February 2007, 12:23
Did you actually enable php for the site? :)
You can do so in the "base" tab.
PHP enabled in ISPConfig, I have also tried to reinstall PHP and tried to mess around with apache.
I have also tried reinstalling ISPConfig and there is still no luck...
I am also begining to think maybe it is a problem in apache 2, that it is not running PHP, but I cant see that there is any issues in Apache!!!
till
9th February 2007, 12:48
I guess your problem is related to this issue:
http://www.howtoforge.com/forums/showpost.php?p=56261
we changed it already in SVN for the next relaese of ISPConfig. You can change it your sellf by replacing the line:
$php .= "AddType application/x-httpd-php .php .php3 .php4 .php5\n";
with:
$php .= "AddHandler application/x-httpd-php .php .php3 .php4 .php5\n";
in the file /root/ispconfig/scripts/lib/config.lib.php around line 1390
mgendys
9th February 2007, 19:24
:D THANKS TILL - THAT ACTUALLY WORKED!!!:D
Thanks all for your advice and support, this is the best support I have ever received on a forum, and it is great seeing the knowledge being shared around.
R0l@ndSm0ke
6th October 2007, 21:55
After updating to version 2.2.17, I find that these issue remain unresolved. I have to update these files with every update to ISPConfig.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.