diff options
-rw-r--r-- | lang/php5/pkg-message.mod | 8 | ||||
-rw-r--r-- | lang/php55/pkg-message.mod | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lang/php5/pkg-message.mod b/lang/php5/pkg-message.mod index 555f5b053ae8..f60f33ce2266 100644 --- a/lang/php5/pkg-message.mod +++ b/lang/php5/pkg-message.mod @@ -4,7 +4,11 @@ Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: -AddType application/x-httpd-php .php -AddType application/x-httpd-php-source .phps +<FilesMatch "\.php$"> + SetHandler application/x-httpd-php +</FilesMatch> +<FilesMatch "\.phps$"> + SetHandler application/x-httpd-php-source +</FilesMatch> *************************************************************** diff --git a/lang/php55/pkg-message.mod b/lang/php55/pkg-message.mod index 555f5b053ae8..f60f33ce2266 100644 --- a/lang/php55/pkg-message.mod +++ b/lang/php55/pkg-message.mod @@ -4,7 +4,11 @@ Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: -AddType application/x-httpd-php .php -AddType application/x-httpd-php-source .phps +<FilesMatch "\.php$"> + SetHandler application/x-httpd-php +</FilesMatch> +<FilesMatch "\.phps$"> + SetHandler application/x-httpd-php-source +</FilesMatch> *************************************************************** |