Linux – Disabling PHP Safe Mode for a specific folder

using .htaccess file:

add the next line to .htaccess file:

php_value safe_mode "1"

using php.ini file

in php.ini add this line

safe_mode = Off

for globall efect, search php.ini in /etc/ folder and change:

safe_mode = On

with

safe_mode = Off 

NOTE:

Php Safe Mode was removed in PHP 6.0.0. (features.safe-mode)

byrev Written by:

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *