Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Modify PHP mime type properly?

Discussion in 'EasyApache' started by Scott Galambos, Apr 4, 2018.

  1. Scott Galambos

    Scott Galambos Active Member

    Joined:
    Jul 13, 2016
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,722
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    372
    Likes Received:
    20
    Trophy Points:
    93
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page