Skip to content

Commit

Permalink
Fix SetHandlers on newer deb/ubu versions
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Nov 5, 2018
1 parent 40a20b0 commit 788b09c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Virtualmin/Config/Plugin/Apache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ sub actions {
flush_file_lines($fn);
}

# On Ubuntu 10, PHP is enabled in php5.conf in a way that makes it
# On Debian/Ubuntu, PHP is enabled in php*.conf in a way that makes it
# impossible to turn off for CGI mode!
foreach my $php5conf (
"/etc/apache2/mods-available/php5.conf",
"/etc/apache2/mods-enabled/php5_cgi.conf",
"/etc/apache2/mods-available/php7.0.conf"
"/etc/apache2/mods-available/php7.0.conf",
"/etc/apache2/mods-available/php7.1.conf",
"/etc/apache2/mods-available/php7.2.conf"
)
{
if ($gconfig{'os_type'} eq 'debian-linux' && -r $php5conf) {
Expand Down

0 comments on commit 788b09c

Please sign in to comment.