[Case 67241] EasyApache Messes with .htaccess

Glexia

Member
Aug 8, 2005
18
1
153
Hi All,

Refer to Thread http://forums.cpanel.net/f34/apache-php-recompile-htaccess-edited-103633.html

Our htaccess code was edited

from:
AddHandler application/x-httpd-php .php .html

to:
# AddHandler application/x-httpd-php .php .html

-
If its edited our php include in html pages will not work.
-

I saw this thread and was wondering why EasyApache does this still? Why do we need a comment before these items when they are valid .htaccess instructions... Why are these items being changed?

I look forward to a response.

Regards,

mbwmbw
 

cPanelKevinS

Member
Staff member
Mar 7, 2013
8
0
1
Hi @Glexia,

This seems to be done by the update_php_mime_types script. EasyApache normally runs this script, but it can be prevented from doing so by running this command:

touch /var/cpanel/easy_skip_update_php_mime_types

I've opened a case to correct the root problem, but hopefully this workaround will help you out for now.
 

paulw91

Registered
Aug 14, 2013
3
2
3
cPanel Access Level
Root Administrator
Hi @Glexia,

This seems to be done by the update_php_mime_types script. EasyApache normally runs this script, but it can be prevented from doing so by running this command:

touch /var/cpanel/easy_skip_update_php_mime_types

I've opened a case to correct the root problem, but hopefully this workaround will help you out for now.
Hi KevinS,

We have this same issue, do you have somewhere that we can track the progress of the case?

Are there any potential drawbacks from skipping updating of php mime types?

Thanks and kind regards - Paul.