HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Ubuntu 10.04 Syntax error in php5.conf (ISPC 2) (http://www.howtoforge.com/forums/showthread.php?t=52472)

krambiorix 27th April 2011 23:56

Ubuntu 10.04 Syntax error in php5.conf (ISPC 2)
 
Hi guys,

first of all, great work, nice product!

When i try to restart apache from a fresh install, i get Syntax error on line 3 of /etc/apache2/mods-enabled/php5.conf: SetHandler takes one argument, a handler name that overrides any other configured handler ...fail!

This is my php5.conf :

<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler ##ISPConfig INSTALL## application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler ##ISPConfig INSTALL## application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>
~
Thanks for the help

falko 28th April 2011 15:12

Modify the file as follows and restart Apache:


Code:

<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
##ISPConfig INSTALL## SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
##ISPConfig INSTALL## SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>


krambiorix 28th April 2011 15:22

Falko,

i reinstalled everything and now it works.

Thx for your time!


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

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