Enable register_globals via custom HTTPD config for suPHP 5.3x

netstepinc

Verified User
Joined
Jul 2, 2006
Messages
73
Location
Seattle, WA Area
I know its bad but I need to get a site working temporarily with register_globals enabled.

I need to use a custom httpd configuration for a domain because suPHP won't acknowledge php.ini or htaccess changes.

The syntax I tried in the DA http config window crashed the server so I'm curious what the correct syntax is.
Code:
php_flag register_globals on
or
Code:
php_admin_flag register_globals on

Compiled on Debian 6.0 64-bit
Apache 2.2.25
DirectAdmin 1.43.3
Php 5.3.27 (suPHP)

Or a bigger question...will suPHP allow me to enable register_globals?
 
I think you have to change AllowOverride on the right place to "AllowOverride All" (bad idea) - but don't quote me on it.
 
FIX From John at DA Support:

The correct way to only turn it on for one user or domain is to setup the php.ini overrie, as metioned in the guides at:
If you need a per-User setting, use this:
http://help.directadmin.com/item.php?id=183

Or just turn it on globally in:
http://help.directadmin.com/item.php?id=301

However, you could just do it for this one account at:
Admin Level -> Custom Httpd Config -> domain.com

And in the top text area, paste in this data:
HTML:
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/

and then add the php.ini to:
/usr/local/directadmin/data/users/username/php/php.ini

with the contents:

PHP:
[HTML]register_globals = on[/HTML]
 
Back
Top