Prevent EA4 MultiPHP from editing .htaccess ?
Hi,
I'm wondering if there is an alternative way for MultiPHP to set PHP version instead of altering the .htaccess file? Each time the PHP version is changed it adds the following code:
It plays havoc with websites that rely on version control, it can create conflicts in git.
# php -- BEGIN cPanel-generated handler, do not edit
# Set the "ea-php71" package as the default "PHP" programming language.
AddType application/x-httpd-ea-php71 .php .php7 .phtml
# php -- END cPanel-generated handler, do not editIt plays havoc with websites that rely on version control, it can create conflicts in git.
-
Hi, Unfortunately that's the only way. You can add the .htaccess file to your git repository so that those changes are tracked. 0 -
Hi, Unfortunately that's the only way. You can add the .htaccess file to your git repository so that those changes are tracked.
Thats a shame.. would this not cause problems in development environments that don't have access to EA PHP7.1 handler application/x-httpd-ea-php71 ? The other solution is to not add .htaccess to version control and have different versions per environment.0
Please sign in to leave a comment.
Comments
2 comments