Hi all, I have about 90 sites which iam transferring to ISPConfig, problem is, all the site files have .phtml extensions (index.phtml etc). If i use the apache directives, i get the handler lines 2 times in my vhosts.. is there an option to activate this by default? thnx in advance tijn
Edit /root/ispconfig/scripts/lib/config.lib.php. In the lines 1368 and 1373 you find something like Code: $php = "AddType application/x-httpd-php .php .php3 .php4 .php5"; Change it to Code: $php = "AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml"; And in the lines 1376 - 1391 you find this: Code: $php .= "<Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files>"; Change it to Code: $php .= "<Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.phtml> SetOutputFilter PHP SetInputFilter PHP </Files>";
Works! Thnx Falko! works like a charm! It also worked when i put it in the apache directives, but than there is a double line in the vhosts file (and its alot of work) so you saved me a couple of hours thnx