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!

Register Globals setting in WHM....

Discussion in 'General Discussion' started by ShaneK, Oct 21, 2007.

  1. ShaneK

    ShaneK Member

    Joined:
    May 4, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Has anyone else noticed if you change your settings to register_globals on via the whm controls (no I don't want register globals on.. yes I understand the risks.. I'm just testing things) when running both php4 and php5 (latest release build), only php5's setting is updated?

    I tried to make me a bugzilla account but I think my company spam filter caught the registration email :D

    Can someone else check this and verify it isn't just me?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I'm guessing that it only effects the default php, be it 4 or 5. To make changes for php 4 (if 5 is your default) try editing /usr/local/php4/lib/php.ini
     
  3. ShaneK

    ShaneK Member

    Joined:
    May 4, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Yup, I know I can edit the ini's directly but that goes against the cpanel way ;)

    php4 is actually the default right now, with plans for that to switch over at the end of the year.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I think that what it is, is that regardless of which one you have configured as the default php handler, in a dual install, php5 is the one installed in the default location on the server. That will be the one that whm edits.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    The PHP Configuration editor in WHM is not dual-PHP aware, it only edits /usr/local/lib/php.ini
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. ShaneK

    ShaneK Member

    Joined:
    May 4, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Is it safe then to find and edit the php4 config with vi? Or will those settings be over written by cPanel on updates?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    /usr/local/php4/lib/php.ini should only be overwritten if you reinstall PHP4 via EA3. cPanel updates will likely not touch that file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Its always important to keep backups of important files like that, especially before doing any upgrades. I take regular backups of php.ini, httpd.conf, maybe named.conf... just in case :)
     
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