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.

editing httpd.conf

Discussion in 'General Discussion' started by BigLebowski, May 20, 2009.

  1. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    hi all

    I need to add "php_admin_flag register_globals On" to the default virtual host for my server as follows:

    1. Old

    <VirtualHost 194.231.172.12:80>
    ServerName ns5.test12dns.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin fred@fred.com
    </VirtualHost>

    2. New

    <VirtualHost 194.231.172.12:80>
    ServerName ns5.test12dns.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin fred@fred.com
    php_admin_flag register_globals On
    </VirtualHost>

    But there are warnings throughout httpd.conf that if edit it manually, any changes will be lost when httpd.conf is next rebuilt. How can I make this change permanent? I have looked at the Include editor in WHM but it doesn't seem to help.

    Cheers
    Dude
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  3. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    excellent, ty, that seems to have done the trick :)

    Dude
     
Loading...

Share This Page