|
|
How to turn off open_basedir and safe_mode for PHPHere is how you do it: First we assume that the domain in question is example.com (make sure you replace it with your own domain name) You need to create a vhost.conf file in the directory: ~~#FF0000: /var/www/vhosts/example.com/conf/ ~~ You need to place the following code in that file: ~~#FF0000: <Directory /var/www/vhosts/example.com/httpdocs> php_admin_value safe_mode off php_admin_value open_basedir none </Directory> ~~ After you saved the file you need to rebuild the appropriate domain configurations for that host /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=example.com Apache categoriesApache Installation? | Apache Configuration | Apache Troubleshooting? Back to > Software |
Google SearchLogin |