PHP broken on port 80 after install

Discussion in 'Installation/Configuration' started by ratcateme, Mar 1, 2008.

  1. ratcateme

    ratcateme New Member

    I have just installed ISPConfig. it runs fine on port 81 but when i try to access my normal server on port 80 all my PHP source is printed. :(
    i have checked /etc/httpd/conf.d/php.conf and it is using
    LoadModule php5_module modules/
    i think it use to use:
    ##ISPConfig INSTALL## AddHandler php5-script .php
    ##ISPConfig INSTALL## AddType text/html .php
    but as you can the ISPConfig install has commented these lines out.
    i checked /etc/httpd/modules and was there so i think it should be loading it.
    i also looked in the httpd error log and it reports normal start so no errors about php.
    dose anyone know how to fix this.

  2. falko

    falko Super Moderator ISPConfig Developer

    That's normal. ISPConfig disables PHP globally so that you can enable or disable PHP on a per-site basis in ISPConfig. Just set up a web site in ISPConfig and enable PHP for it.
  3. tollan

    tollan New Member

    "and enable PHP for it", ... I have enabled PHP for 10 iferent hosting plans, and still php won't work.

    As I can see it is common question on forum and nobody know real answer !!!
    Could someone define steps to detect error.

    please help
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The question is not really common and there are many answers in the forum.

    1) Which linux ddistribtion do you use? Did you install everything exactly as described in the perfect setup guide for your linux distribution?
    2) Make sure that you installed mod_php
    3) have a look in the Vhost_ispconfig.conf file, if php is enabled in the vhost.
  5. tollan

    tollan New Member

Share This Page