Sunday, November 24, 2013

How to set magic_quotes_gpc = Off in PHP WHM Cpanel


Login to  WHM -> SOFTWARE -> update Apache-> unchecked Php magic quotes.

Click "Start Build" and wait for rebuild to complete and you are done.

Check Status of magic_quotes_gpc from phpinfo() if you can see magic quotes is still on.

Forget WHM just edit the php.ini file.

If you are not able to find php.ini use the command below.

find / -name php.ini

once you locate it open it in a editor and set magic_quotes_gpc = Off
that file will look some thing like below.

Magic quotes for incoming
magic_quotes_gpc = Off

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)