VMotion logo
Please Login or Register
SALES: +353 61 503060 | sales@vmotionhost.com
SUPPORT: +353 61 503061 | support@vmotionhost.com

Portal Home > Knowledgebase > Guides > Control Panels > DirectAdmin > How to disable magic_quotes_gpc on my DirectAdmin server?


How to disable magic_quotes_gpc on my DirectAdmin server?




The most straight way to disable magic_quotes_gpc on your dedicated server is to do it in the php.ini however it is not the case with DirectAdmin.

Even if you disable it in php.ini it will get commented out after you recompile php. And since it is commented out, by default it is enabled. 9You can find the official position of DirectAdmin re this topic here)

So, you will have to disable magic_quotes_gpc directly through .htaccess file for each of your domains manually.

To do it, place the .htaccess file in the root folder of the domain (i.e. public_html) and place the following code on a separate line:

php_value magic_quotes_gpc off

 

This will turn magic quotes off for this articular domain.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Funded by the European Globalisation Fund TRUSTe Privacy Policy
VMotion IT Solutions LTD®, registration number 489707, VAT number IE 9772534C. Copyright © 2010-2017 VMotion IT Solutions
Funded by the European Globalisation Fund