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.

Add permanent lines to /usr/local/apache/conf/php.conf

Discussion in 'EasyApache' started by speckados, Aug 24, 2016.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I need add to /usr/local/apache/conf/php.conf

    Code:
    Action php5-fastcgi /cgi-bin/php.fcgi
    AddType application/x-httpd-php .php
    But I like permanent change, not deleted by cpanel upgrade.

    How I can do it?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can add those entries to the "Pre VirtualHost Include" option in "WHM Home >> Service Configuration >> Apache Configuration >> Include Editor" to ensure they are preserved. This is documented at:

    Include Editor - Documentation - cPanel Documentation

    Thank you.
     
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    It's the same that use file on ?

    Code:
    ls -lisah /usr/local/apache/conf/includes/
    total 28K
    407680 4,0K drwxr-xr-x.  2 root root 4,0K ago 23 12:08 ./
    407793 4,0K drwxr-xr-x. 10 root root 4,0K ago 26 05:09 ../
    414518 4,0K -rw-------.  1 root root  371 mar  7 21:13 account_suspensions.conf
    414382 4,0K -rw-r--r--.  1 root root 1,7K mar 20  2014 errordocument.conf
    415867    0 -rw-------.  1 root root    0 mar 20  2014 post_virtualhost_1.conf
    415870    0 -rw-------.  1 root root    0 mar 20  2014 post_virtualhost_2.conf
    415864    0 -rw-------.  1 root root    0 mar 20  2014 post_virtualhost_global.conf
    415865    0 -rw-------.  1 root root    0 mar 20  2014 pre_main_1.conf
    415868    0 -rw-------.  1 root root    0 mar 20  2014 pre_main_2.conf
    405482    0 -rw-------.  1 root root    0 mar 20  2014 pre_main_global.conf
    415866    0 -rw-------.  1 root root    0 mar 20  2014 pre_virtualhost_1.conf
    415869    0 -rw-------.  1 root root    0 mar 20  2014 pre_virtualhost_2.conf
    415862 4,0K -rw-------.  1 root root   70 ago  2 17:27 pre_virtualhost_global.conf
    408776 4,0K -rw-r--r--   1 root root  155 ago 23 12:08 remoteip.conf
    412940 4,0K -rw-r--r--.  1 root root  303 abr 18 18:20 rpaf.conf
    Thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, those are the configuration files used by "WHM Home >> Service Configuration >> Apache Configuration >> Include Editor".

    Thank you.
     
Loading...

Share This Page