• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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