Changing PHP options without having to run a full EasyApache rebuild

grodde

Registered
Nov 4, 2010
3
0
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
 

pwhjenny

Well-Known Member
Aug 31, 2012
138
0
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
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
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.