PHP on Apache2 no longer works after ISPconfig

Discussion in 'Installation/Configuration' started by azorman, Nov 3, 2005.

  1. azorman

    azorman New Member

    After installing ISPconfig, my Apache2 stopped processing PHP, not even phpinfo(); I was under the impression that I would have 2 web servers (an Apache 1.3 and an Apache 2) running independently from each other; my Apache2 was working fine with PHP all the way up to starting ISPconfig the first time; at that time, the Apache2 server kept on running but if no longer understood PHP. What am I missing?

    Basic setup:
    Mandriva 2006
    NIC1: eth0 - eth0:0
    NIC2: eth1

    When the ISPconfig setup asked me for the host/domain I gave it (the same I was running on Apache2) and when it asked me for an IP, I gave it

    Thanks in advance for any ideias!
  2. falko

    falko Super Moderator Howtoforge Staff

  3. azorman

    azorman New Member

    Thanks, but maybe I did not make myself clear for the post you sent me to does not help at all! Maybe if I knew the answer to the following question I would be able to undertand how this all thing works: Why does php stop working on my site after installing ispconfig? If I did it would display the php info; after installing ispconfig, it still sees the page info.php but the only thing that comes up is <? phpinfo(); ?> and not the result of executing the function, which means that it stopped processing php. Thanks very much!
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you read the post falko posted above? It esplains exactly which settings are changed.

    If you change the things described there, your webpages will work again and ISPConfig will not be able anymore to configure PHP on your server. The ISPConfig installer has to remove the PHP settings in your httpd.conf to be able to enable PHP on a per vhost basis.
  5. azorman

    azorman New Member

    Here is the simple solution:
    1. Make a copy of /etc/httpd/conf/mines.types before installing ispconfig.
    2. Make a copy of /etc/httpd/modules.d/70_mod_php.conf before installing ispconfig.
    3. Install ispconfig.
    4. Restore the files backed up on steps 1 and 2.

    Thanks for your help!
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    And be aware that the PHP settings in ISPConfig wont work anymore...
  7. Ovidiu

    Ovidiu Active Member

    hi there,

    I have a similar question.
    I am just moving mz data from one server to another and actually everything works so far. only one problem occured so far:

    when movin /var/www/webmail which contains my webmail folder (squirrelmail) it does not work anymore.

    exactly this happens:

    I got to and choose squirrelmail which should bring me to the login page of squirrelmail, but instead the php code is displayed. if I manually navigate to squirrelmail: it works, so this does not look like a generic php problem.

    also if I put a info.php file containing
    it works...

    any idea where to start looking for the problem?


    I found the error: there was a space after ?> although I have no clue how that could happen, as I followed the instructions from this forum how to move folders and maintaining the owners and properties of folders...
    Last edited: Jul 23, 2006

Share This Page