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

    Joined:
    Jul 19, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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

    Joined:
    Sep 14, 2004
    Messages:
    1,342
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    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.

    Mike
     
    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