PHP not working for VHOSTS

Discussion in 'Installation/Configuration' started by kopurka, Jan 31, 2012.

  1. kopurka

    kopurka New Member


    I have new installation CentOS Linux 6.2 (Linux 2.6.32-220.4.1.el6.i686 on i686) + ISPConfig 3 latest version, following perfect setup for centos 6.2 from howtoforge ...

    OK. ISP admin panel works, phpmyadmin works, so I suppose the php is working.

    I have created one domain based virtual host with just one fail index.php, containing:


    After entering the domain in my browser I just receive the text as html, not actual php info ...
    I try every php option for the website - Fast-CGI, CGI, Mod-PHP, SuPHP...
    No success :(
    No any errors in log files.
    For example in suphp.log I just god:

    [Tue Jan 31 02:24:01 2012] [info] Executing "/var/www/clients/client3/web3/web/index.php" as UID 5005, GID 5007

    SELinux is disabled.

    PLEASE HELP.... What to do?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    And its the same for all php modes incl mod_php? Was this a fresh centos install or was there another controlpanel installed before on the server?
  3. kopurka

    kopurka New Member

    Yes. Te same for all modules. And yes, completely new installation.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the vhost file of the affected site, you should find it in /etc/httpd/sites-available/
  5. kopurka

    kopurka New Member


    This version of php comes with default
    short_open_tag = Off

    so <? is just not recognized as php file ...


Share This Page