PDA

View Full Version : php on sites not working - fresh install


matej
29th June 2007, 18:32
I have fresh instal of version 2.2.14, Ifter I add site to ispadmin, php is not working (it show content of .php file instead of executing). I've checked "PHP scripts" on site properties (also If I look into file Vhosts_ispconfig.conf I see in this site lines:

AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On

so looks fine, but still doesn't work. Any ideas what else should/could I check?

I have mandriva 2007.1 and used "The Perfect Server - manuals" during setup.

matej
29th June 2007, 19:15
I have also tried to global enable php with uncommening

/etc/httpd/modules.d/70_mod_php.conf
lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

But still same. Php is not working.

Thanks for any help.

matej
29th June 2007, 20:01
Found it. I removed mod_suphp and now everything is fine.