• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Site specific php.ini-file

jhuedder

Basic Pleskian
Hi,

I would like to turn "register_globals" to ON on some of my clients sites. Is there a way to alter PHP-settings just to specific virtual sites? I am using Plesk 8.6 with PHP5.

Thankx.
 
Should be no problem. PHP offers the possibility to modify ini-Directives in your scripts - or, the better way i think is activate the flag in your apache conf-file of the domain. And even better, modify the PHP-Programm to work without regsiter_globals on ;)

Edit /srv/www/vhosts/<domain>/conf/httpd.include and look for
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/srv/www/vhosts/<domain>/httpsdocs:/tmp"
</IfModule>

And add the following line to the flags:
php_admin_flag register_globals on


Don't forget to reload Apache after ;) :
rcapache2 reload

You could also add a flag to display the errors in the browser, while you're developing:
php_admin_flag display_errors on
 
Back
Top