View Full Version : Adding .phtml support for site.
tijn_tux
24th August 2006, 17:15
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
falko
26th August 2006, 01:46
Edit /root/ispconfig/scripts/lib/config.lib.php. In the lines 1368 and 1373 you find something like
$php = "AddType application/x-httpd-php .php .php3 .php4 .php5";Change it to
$php = "AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml";And in the lines 1376 - 1391 you find this:
$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
$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>";
tijn_tux
28th August 2006, 12:50
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
:D :D thnx :D :D
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.