11
Jul
0
Plesk si open_basedir
Pentru dezactivarea open_basedir la plesk, trebuiesc create fisierele vhost.conf si vhost_ssl.conf in /var/www/vhosts/numedomeniu.com/conf/ cu urmatorul continut:
<Directory /var/www/vhosts/{numedomeniu.com}/httpdocs> php_admin_value safe_mode off php_admin_flag register_globals off php_admin_value open_basedir none </Directory>
respectiv
<Directory /var/www/vhosts/{numedomeniu.com}/httpsdocs> php_admin_value safe_mode off php_admin_flag register_globals off php_admin_value open_basedir none </Directory>
Dupa aceea se executa:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost- name=<numedomeniu.com>
Si cu un restart apache – you’re free – out of your dir
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Subscribe to the RSS feed and have all new posts delivered straight to you.
Post your comment