From 92a6d7aa213721efb90623ccf72e2819575b57ee Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 4 Dec 2018 04:30:17 +0100 Subject: [PATCH] mod_php_install.sh: fix error adding rules to file 'httpd.conf' in case of mod_pgp. --- mod_php_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index 77439ff..3c9a80b 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -1413,8 +1413,8 @@ if ! $WITHOUT_APACHE_MOD_PHP ; then read _set_php_entries if [ "y" = "$_set_php_entries" -o "Y" = "$_set_php_entries" -o "Yes" = "$_set_php_entries" -o "yes" = "$_set_php_entries" ];then sed -i -r \ - -e "s&(^\s*LoadModule php5_module.*$)&\1\n#\n AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml\n AddType application/x-httpd-php-source .phps\n#&" ${APACHE_BASEDIR}/conf/httpd.conf - #-e "s&(^\s*LoadModule php5_module.*$)&\1\n\n AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml\n AddType application/x-httpd-php-source .phps\n&" ${APACHE_BASEDIR}/conf/httpd.conf + -e "s&(^\s*LoadModule php${PHP_MAJOR_VERSION}_module.*$)&\1\n\n AddType application/x-httpd-php .php\n AddType application/x-httpd-php-source .phps\n&" ${APACHE_BASEDIR}/conf/httpd.conf + #-e "s&(^\s*LoadModule php${PHP_MAJOR_VERSION}_module.*$)&\1\n\n AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml\n AddType application/x-httpd-php-source .phps\n&" ${APACHE_BASEDIR}/conf/httpd.conf fi fi