Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Disable suhosin for single domain  (Read 2384 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Disable suhosin for single domain
« on: November 25, 2013, 03:01:49 pm »
Hi,

To disable suhosin for single domain:-

1). Login in server as root
2). copy main php.ini in users document root. So firstly find your PHP loaded configuration path by running

Quote
# php -i | grep php.ini
Loaded Configuration File => /usr/local/lib/php.ini

# cp /usr/local/lib/php.ini /home/username/public_html

3). Make the changes in the php configuration file and save the file.

# cd /home/username/public_html

Code: [Select]
vi php.ini

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


4). To disable suhosin using .htaccess file.

Create .htaccess file under /home/username/public_html and add this line:

Quote
php_flag suhosin.simulation On


If server is suphp enabled, add the following code in .htaccess

Code: [Select]
<files “.ht*”>
deny from all
</files>

suPHP_ConfigPath /home/username



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