• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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