php on sites not working - fresh install

Discussion in 'Installation/Configuration' started by matej, Jun 29, 2007.

  1. matej

    matej New Member

    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.
     
  2. matej

    matej New Member

    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.
     
  3. matej

    matej New Member

    Found it. I removed mod_suphp and now everything is fine.
     

Share This Page