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.

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:
    1
    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:
    16
    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:
    135
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page