So I converted a server from EA3 to EA4 today, allowing EA4 to build Apache and PHP based on the EA3 config. Although despite the fact that only native PHP version 5.6 was installed, EA4 decided to install 54 55 and 56
We are using Cloudlinux PHP Selector which I'm very pleased with. There are only a handful of users that have their PHP version set to the servers native version.
But for some reason EA4 doesn't seem to take into account the fact that we are using alt-php and it decides to write crap into our users htaccess files anyway. Here is an example...
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54†package as the default “PHP†programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php54___lsphp .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
I don't know why this happened, since this user was not even using the native version - but alarmingly this entry remained even after I re-provisioned PHP, removing ea-php54 from the server entirely. So this broke the clients site.
I don't know why cpanel insists on writing stuff to the clients htaccess files anyway. Cloudlinux seem to have found a much better way of dealing with versions without having to do that.
Just thought I'd vent my frustration at having yet another bad experience with EA4. I don't know how many of my clients have been affected by this but I'm sure there will be plenty more letting me know over the next couple of days.
We are using Cloudlinux PHP Selector which I'm very pleased with. There are only a handful of users that have their PHP version set to the servers native version.
But for some reason EA4 doesn't seem to take into account the fact that we are using alt-php and it decides to write crap into our users htaccess files anyway. Here is an example...
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54†package as the default “PHP†programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php54___lsphp .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
I don't know why this happened, since this user was not even using the native version - but alarmingly this entry remained even after I re-provisioned PHP, removing ea-php54 from the server entirely. So this broke the clients site.
I don't know why cpanel insists on writing stuff to the clients htaccess files anyway. Cloudlinux seem to have found a much better way of dealing with versions without having to do that.
Just thought I'd vent my frustration at having yet another bad experience with EA4. I don't know how many of my clients have been affected by this but I'm sure there will be plenty more letting me know over the next couple of days.