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
  • 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 


How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.