Wow. What version of PHP are they running? RG was flagged as a bad thing back in the '90s, and removed from the defaults in the early 'oughts.
If you have access to your own php.ini file, then change this line:
; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://php.net/register-globals
register_globals = Off
That’s the default setting here on Mac OS X’s built-in PHP.
If you don’t, then use the .htaccess trick. First, you will have to ensure that your Apache config has set
AllowOverrides All
If it has not, then you will need to add this directive inside the Directory block for your particular virtual host in the Apache configuration file.
Then set
php_flag register_globals off
in your .htaccess to turn off register globals.
Walter
On Jun 12, 2012, at 10:47 AM, Todd wrote:
I’ve already exhausted my hosting and CMS support avenues so I’m posting here.
I use MacHighway and I’ve successfully installed MODX on the server. The only problem is that MODX requires register-globals be Off which in my case they are not.
First I tried uncommenting this line “#php_flag register_globals Off” in the root MODX .htaccess file (I can post the entire file if that will help). While this does not throw a 500 error I still get the “Configuration Error” about register-globals being On in the Manager.
I then tried disabling the above .htaccess file and instead tried this MacHighway tutorial regarding modifying the php.ini file Modify the php.ini file for your site - Knowledgebase - MacHighway but this method does throw a 500 error.
Either way it fails so I’m unsure as to what to try next. MacHighway claims r_g can be turned Off/On easily at the domain level using the php.ini/.htaccess but I’ll be damned if I can figure it out. Changing hosts is not really an option so if anyone can help me sort this out I would be grateful.
Todd
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options