View Single Post
  #6  
Old 10th February 2007, 19:03
sabolc sabolc is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default Use Apache directives

Quote:
Originally Posted by R0l@ndSm0ke
Changing addtype to addhandler works for me when php is not working on my sites. However, whenever I change something through ISPConfig it rewrites those statements back to addtype. Is there a file that ISPConfig uses to create the vhost file that I can edit to tell it that it should always insert AddHandler instead of AddType?
There is a file at /root/ispconfig/isp/conf/vhosts.conf.master but that did not help me. Here is what I ended up doing:

1. You do not use the PHP checkbox at all. That way ISPConfig will not write or overwrite your config.

2. You add these lines in the "Apache directives" field manually:

AddHandler application/x-httpd-php .php4
AddHandler application/x-httpd-php .php5
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .php4s
AddHandler application/x-httpd-php-source .php5s
AddHandler application/x-httpd-php-source .phps

((these are the lines copied from the original SUSE Apache2 config)).

Actually, I found out that playing with the Apache directives you can set a number of nice things (I needed FollowSymLinks, for example).


A little addition: I am not sure if the OpenSUSE guys changed something but following the "Perfect setup OpenSUSE 10.2" manual, /var/lib/named is owned by root (and named does not work). Perhaps it could be useful to add the following line to the manual:

chown -R named:named /var/lib/named


Finally, a question from me, too: Falko, Till, are you planning to write a Perfect Setup for SLES (SUSE Linux Enterprise Server) 10, too?

Best,

Szabolcs
Reply With Quote