Question
Why did the timestamps on my .htaccess files change after an update?
Answer
There is a post-transaction script named 009-phpconf.pl that runs after any PHP or EasyApache packages are updated, installed, or removed that checks this section of all domain .htaccess files for accuracy.
With this in mind, the warning in the MultiPHP Manager generated message about not editting the section should be heeded. You should only use MultiPHP Manager to set the PHP version of a domain or else set it to "Inherit" to allow other methods to take precedence.
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
This section will be updated or readded if any of the following is true:
- The section is not at the bottom of the .htaccess file.
- The section is missing.
- The section has been modified.
Even if the section is at the bottom and matches MultiPHP Manager, the script causes the time stamp on the files to change.
Comments
0 comments
Article is closed for comments.