Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 14th July 2009, 03:41
spike spike is offline
Junior Member
Join Date: Jul 2009
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default ISPConfig2 Install - Gentoo - Apache2 syntax error


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.

<IfDefine PHP5>
        # Load the module first
        <IfModule !mod_php5.c>
                LoadModule php5_module    modules/libphp5.so

        # Set it to handle the files
        <FilesMatch "\.ph(p5?|tml)$">
                SetHandler ##ISPConfig INSTALL## application/x-httpd-php

        <FilesMatch "\.phps$">
                SetHandler ##ISPConfig INSTALL## application/x-httpd-php-source

        DirectoryIndex index.php index.phtml
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.
Reply With Quote
Sponsored Links
Old 14th July 2009, 09:21
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

Change the line:

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


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

and the line:

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


##ISPConfig INSTALL## SetHandler application/x-httpd-php-source
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 17:26
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
mplayer error dexjul Installation/Configuration 3 1st December 2007 13:45
Ispconfig Install error "lex.ssl_expr_yy.c:1901: error:" galmiche Installation/Configuration 1 30th December 2006 12:44

All times are GMT +2. The time now is 14:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.