Friday, June 17, 2011

Disable suhosin for single domain

SkyHi @ Friday, June 17, 2011




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

[suhosin]
; 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
<files “.ht*">
deny from all</files>

suPHP_ConfigPath /home/username
Save the file and exit

REFERENCES