Prevent EA4 MultiPHP from editing .htaccess ?

Forcerdj

Well-Known Member
Nov 30, 2009
68
1
58
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:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php71” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
It plays havoc with websites that rely on version control, it can create conflicts in git.
 

Forcerdj

Well-Known Member
Nov 30, 2009
68
1
58
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.