How to Disable Suhosin in Debian

Valic —  March 1, 2012 — Leave a comment

Suhosin can be disabled by 2 methods:

1. Disable Suhosin using php.ini:

Open the php.ini file and add the following code:

[suhosin]
suhosin.simulation = On

NOTE: On means disabled and  Off means enabled.

Now restart the Apache2 server and Suhosin will be disabled.

/etc/init.d/apache2 restart

2. Disable Suhosin for specific domain using  .htaccess file:

Open .htaccess file for the domain you want to disable.

vim .htaccess

and add the following line:

php_flag suhosin.simulation On

Now restart the Apache2 server and Suhosin will be disabled for the desired domain.

 


Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

No Comments

Be the first to start the conversation.

Leave a Reply