• 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.

How to use php.ini .htaccess register_globals on a per-site basis?

D

Data@

Guest
I'm using Plesk for Windows/IIS with register_globals turned off by default in the php.ini.

Now a client of mine needs register_globals to be on for his site. I do not want to turn register_globals on by default in php.ini as this will put all other sites at risk.

On linux this could be easily done with .htaccess, but that doesnt work for Windows and IIS.

How do i enable register_globals for just one website?
 
Silence1,

On your server:

Start > Run > type "regedit" (without quotes)
Then find the registry branch HKLM\SOFTWARE\PHP\Per Directory Values\C\Inetpub\vhosts\domain.com where domain.com should be replaced with the real domain name on which you need to set register_globals to "On" and change this value manually.

Hope this will help.
 
register_globals

Works Like a charm...

For registry "unknowers":

Start - Run - Regedit - go to "HKLM\SOFTWARE\PHP\Per Directory Values\".

Then create keys (If you site folder is default "C:\Inetpub\vhosts\domain.com":
"C" - "Inetpub" - "vhosts" - "domain.com" - then add string value "register_globals" and set string "on".

Image is attached to message.
 

Attachments

  • php settings register_globals.jpg
    php settings register_globals.jpg
    80.4 KB · Views: 361
This Solution is not working for me on Windows 2003 Server x64 with Plesk 8.2

the Registy is:

HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > PHP > Per Directory Values > C > Inetpub > vhosts > domain.com
 
Back
Top