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.

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:
    1
    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,279
    Likes Received:
    36
    Trophy Points:
    48
    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
     
Loading...

Share This Page