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

Discussion in 'General Discussion' started by parag joshi, Dec 17, 2008.

  1. parag joshi

    parag joshi Well-Known Member

    Joined:
    Sep 2, 2008
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    56
    Is there a way to set magic_quotes_gpc to off either for one domain/sub-domain or for my entire site?
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    1
    Trophy Points:
    166
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    For a domain/sub-domain create or add this to the .htaccess file if you are not running SuPhp

    Code:
    php_flag magic_quotes_gpc off
    If running SuPhp make a php.ini file for every folder you need this disable and put in

    Code:
    magic_quotes_gpc = Off
    For serverwide put the this code in your main php.ini file

    Code:
    magic_quotes_gpc = Off
     
    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