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!

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:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,935
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you verify which version of EasyApache you are using on this server?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Easyapache 3
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,183
    Likes Received:
    1,935
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    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