Category: Linux
How to disable Safe Mode in PHP on Linux
There are 3 ways
- Create a file called “php.ini” and add it to the root folder of your website, add the following text
safe_mode=Off
- Create a file called “.htaccess” in the of my local directory, add the following text
php_flag safe_mode off
- Add this text to the apache httpd.conf
<Directory " /var/www/vhosts/[domain/httpdocs"> php_admin_flag safe_mode off