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.

  • Email, SSL
  • 47 Users Found This Useful
Was this answer helpful?

Related Articles

Change email password without logging in

If you would like your pop users to be able to change their own email passwords without having to...

Setting up DirectAdmin with an SSL certificate

You can switch DirectAdmin to use SSL instead of plain text. -> https instead of http on port...

How to customize the output of webalizer

DirectAdmin uses the default webalizer settings by not specifying a webalizer.conf file at all....

How to allow webalizer stats to be viewable through the web

If a User does not want to have to login to DirectAdmin each time he accesses his webstats, a...

How to setup /~username/domain.com

If you wish to be able to control all domain on an account before they resolve, you can do so by...