ISPConfig2 Install - Gentoo - Apache2 syntax error

Discussion in 'Installation/Configuration' started by spike, Jul 14, 2009.

  1. spike

    spike New Member

    Hi,

    I've just finished a fresh installation of Gentoo with ISPConfig (2.2.32) on top (http://www.howtoforge.com/perfect_server_gentoo_2007.0). I installed as per the howto and installed ISPConfig from the script. All seemed to go really well with no errors until the end of the ./setup bit where I was notified that there was a syntax error on line 9 of /etc/apache2/modules.d/70_mod_php5.conf.

    /etc/apache2/modules.d/70_mod_php5.conf
    Code:
    <IfDefine PHP5>
            # Load the module first
            <IfModule !mod_php5.c>
                    LoadModule php5_module    modules/libphp5.so
            </IfModule>
    
            # Set it to handle the files
            <FilesMatch "\.ph(p5?|tml)$">
                    SetHandler ##ISPConfig INSTALL## application/x-httpd-php
            </FilesMatch>
    
            <FilesMatch "\.phps$">
                    SetHandler ##ISPConfig INSTALL## application/x-httpd-php-source
            </FilesMatch>
    
            DirectoryIndex index.php index.phtml
    </IfDefine>
    
    I can't find the original error message but it complained that setHandler should only have one parameter?!?

    Does anyone know what this means? Or more importantly, how I can fix it?

    Many thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Change the line:

    SetHandler ##ISPConfig INSTALL## application/x-httpd-php


    to:

    ##ISPConfig INSTALL## SetHandler application/x-httpd-php

    and the line:

    SetHandler ##ISPConfig INSTALL## application/x-httpd-php-source

    to:

    ##ISPConfig INSTALL## SetHandler application/x-httpd-php-source
     

Share This Page