Scott Galambos

Well-Known Member
Jul 13, 2016
102
4
68
Canada
cPanel Access Level
Root Administrator
I need to add .htm and .html to my PHP mime type handler thing. I'm doing this in /usr/local/apache/conf/php.conf with:

AddType application/x-httpd-ea-php56 .php .php5 .phtml .htm .html

this is fine but I loose these change during an upgrade like it says. where should I be doing this? I tried the PHP MultiLine editor in WHM but it only allows editing of php.ini.

Do I run /usr/local/cpanel/bin/rebuild_phpconf after I change php.conf? if so how? I'm just trying to save that AddType line so I don't loose it during and upgrade.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston