Disable suhosin for single domain

From linuxgo.net

Disable suhosin via php.ini

1. Login in server as root
2. copy main php.ini in users document root
cp /usr/local/lib/php.ini /home/username/public_html
3. Open php.ini using any editor

vi php.ini

; Misc Options
suhosin.simulation = On [On is for disable suhosin and off means enabled]

4. Save the file and exit

Disable suhosin using .htaccess

1. create .htaccess file under /home/username/public_html

and add this line

php_flag suhosin.simulation On

save and exit the editor.

If server is suphp enabled

enter following code in .htaccess

deny from all

suPHP_ConfigPath /home/username

Save the file and exit. After that restart apache and suhosin will be disabled for this account.


I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....