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
Recent comments
14 hours 49 min ago
17 hours 44 min ago
18 hours 58 min ago
20 hours 22 min ago
22 hours 11 sec ago
23 hours 28 min ago
1 day 42 min ago
1 day 16 hours ago
1 day 17 hours ago
1 day 21 hours ago