Dear Susan and Stratton
I have established the following:
a) My hosting company runs php as a cgi. (First I’d head about the idea, but I understand it isn’t without merit). The upshot is I can’t use .htaccess, which was one of the helpful suggestions. I have to use php.ini
b) php.ini files aren’t recursive - that is, don’t have any effect if for some reason control passes to a new sub-directory which hasn’t got a copy of php.ini
c) Except that my host now tells me, while studiously avoiding the real issue, that I can add the following to .htaccess: SuPHP_ConfigPath /path/to/public_html/php.ini, whereupon two things happen - the php.ini file in that location apparently becomes recursive, and what’s more the php-as-cgi thingy knows which order to read the two php.ini files - the local one and the main one, which is hidden away in country I am not permitted access to.
d) Their advice is worthless. The addition to .htaccess crashes everything, I get an Internal Server Error page generated by MODx which also reports a 500 Internal Server Error. Reversing the .htaccess file to its former status brings things back to normal.
e) There is still an unresolved issue with MODx, and I found an unanswered posting on the forums some time ago
http://modxcms.com/forums/index.php/topic,30192.0.html reporting an identical phenomenon. That is: if a php.ini file is added to /manager, the login screen becomes permanent. Obviously rare, and also fairly obviously some kind of combination of MODx and hosting service. I’ll go and hunt the link and edit this later.
f) Yes, the hosting company’s response to my query was that PHP 5.3.4 did "deprecate" magic_quotes, but deprecated it as "on". This surely cannot possibly be true. I can see some of the current configuration file in phpinfo(), and sure enough, there it is ’enable-magic-quotes’. So what gives there? Are they telling the truth? Is magic-quotes locked on and unable to be turned off because the off-switch has been deprecated?
g) I am losing faith with them.
I would still like to know why php.ini files make things fall over in some permutations of MODx, as there are other things that might be fun to tweak in PHP