I have updated the PHP version to 5.5.26. With PHP 5.4 my Apache configuration with FCGI was:
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
With the new version of PHP I need put other config to works:
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
It’s OK, it’s working.
My problem is with Virtualmin module of Webmin. I don’t want to change the config every time, so I have edited the Perl file /usr/share/webmin/virtual-server/php-lib.pl
:
# Directives for fcgid
local $dest = "$d->{'home'}/fcgi-bin";
#push(@phplines, "AddHandler fcgid-script .php");
# New config for PHP files
push(@phplines, "<FilesMatch \\.php\$>");
push(@phplines, "SetHandler fcgid-script");
push(@phplines, "</FilesMatch>");
push(@phplines, "FCGIWrapper $dest/php$ver.fcgi .php");
foreach my $v (&list_available_php_versions($d)) {
#push(@phplines,
# "AddHandler fcgid-script .php$v->[0]");
push(@phplines, "FCGIWrapper $dest/php$v->[0].fcgi " . ".php$v->[0]");
}
But my change does nothing, Webmin continues putting the lines AddHandler
. I have restarted Webmin, I cleared the file /etc/webmin/module.infos.cache
.
'
instead of dubblequote"
if you are not using variable substitution, is to say everywhere in this code. Not a "Perl best practice" => often erroneous code... Try to remove variable substitution and to concatenate with ` . `. – Analemmasave_domain_php_directory
, but the AddHandler lines are actually generated bysave_domain_php_mode
. – Bulbiferous