Plesk Change PHP Admin Values and Rebuild Vhost Config

Create a file called “vhost.conf” in the directory “/var/www/vhosts/”

<Directory /var/www/vhosts/>
php_admin_value safe_mode off
php_admin_flag register_globals on

Rebuild the domain config for the particular vhost with:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain

Or rebuild all vhosts if you changed more than one with:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

You can also change other settings this way here are some examples:

php_admin_value post_max_size 20M
php_admin_value upload_max_filesize 20M
php_admin_value open_basedir none

Leave a Reply

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