Need to load if modules for PHP

Discussion in 'HOWTO-Related Questions' started by conductive, Sep 30, 2011.

  1. conductive

    conductive Member

    Now this code may not be 100% accurate but for php to work apache it must load the following modules in the httpd.conf. A php 5 module/statement would not hurt either.

    # PHP 3.x:
    <IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    AddType application/x-httpd-php3 .phtml

    # PHP 4.x:
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php .html
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps


    What is the preferred way to load and/or check that this is working in ispconfig3?

  2. falko

    falko Super Moderator ISPConfig Developer

    You can copy /usr/local/ispconfig/server/conf/vhost.conf.master to /usr/local/ispconfig/server/conf-custom/vhost.conf.master and then adjust the new file to your needs. Templates in the conf-custom folder take precedence over the ones in the conf directory.

Share This Page