Create a file called “vhost.conf” in the directory “/var/www/vhosts/example.com/conf/”
<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_value safe_mode off
php_admin_flag register_globals on
</Directory>
Rebuild the domain config for the particular vhost with:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com
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