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!

conf.d/php.conf being overwritten

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

  1. RickKukiela

    RickKukiela Member

    Joined:
    Jan 17, 2017
    Messages:
    8
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice