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!

Changing PHP options without having to run a full EasyApache rebuild

Discussion in 'EasyApache' started by grodde, Oct 6, 2012.

  1. grodde

    grodde Registered

    Joined:
    Nov 4, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Are there any other safe methods to alter PHP options (ie. set magic_quotes_GPC off or display_errors of or something similar) - without having to use the EasyApache and do a full rebuild? I'm using the latest WHM/Cpanel on Centos 6.x

    Thanks for any and all feedback
    Geir
     
  2. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    You must use http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/PhpConfgEditor
     
  3. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    91
    cPanel Access Level:
    Root Administrator
    If you are good with the shell, you can edit php.ini file. To locate path of php.ini use

    php -i | grep php.ini
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The global php.ini file will be at /usr/local/lib/php.ini location. You can also revise settings in WHM > PHP Configuration Editor area. Some settings change be changed there. Others that involve whether a module is needing added or removed would require running EasyApache to recompile PHP and Apache.
     
    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