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!

magic_quotes_gpc - Turn off for specific account?

Discussion in 'General Discussion' started by mattsilv, Nov 9, 2007.

  1. mattsilv

    mattsilv Registered

    Jul 19, 2006
    Likes Received:
    Trophy Points:
    I need to turn off magic_quotes_gpc for one of my hosting accounts. I cannot turn it off for whole server because that breaks a few old scripts. Is there a way I can simply specify somewhere or make a modification so it is turned off only for one specified domain?

    Any help is GREATLY appreciated!
  2. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    If you are running suphp, try creating a php.ini file in the directory where the scripts will be run (you will have to have a php.ini file in EVERY directory those scripts may access)

    In that php.ini file put:

    magic_quotes_gpc = off

    If you aren't running suphp, then I think you can set the value in a .htaccess file (but i'm not sure of the syntax).

    If you have compiled your php using safe_php, then you wont be able to use php.ini in individual accounts.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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