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.

conf.d/php.conf being overwritten

Discussion in 'EasyApache' started by RickKukiela, Jul 19, 2017.

  1. RickKukiela

    RickKukiela Registered

    Joined:
    Jan 17, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    Every time apache updates my custom AddType line in php.conf gets overwritten. Where can I put this so that it does not overwite every time it updates?

    I need php to parse .html files server wide.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @RickKukiela,

    Here's the information from the top of this file regarding manual changes:

    Code:
    # head -7 /etc/apache2/conf.d/php.conf
    # This file was automatically generated by the Cpanel php
    # Configuration system.  If you wish to change the way php is being
    # handled by Apache on your system, use the
    # /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
    #
    # Manual edits of this file will be lost when the configuration is
    # rebuilt.
    
    You can find discussion of configuring a custom mime type server-wide on the following post:

    EA3 to EA4 - Permanent httpd.conf Changes

    Thank you.
     
Loading...

Share This Page