G'day All,
We've just recently moved a few of our servers to Aache 2, running PHP4 & PHP5 via SuPHP, but we've now stopped the upgrades and are doing a bit of head scratching.
Like most hosts, we have extensive optimizations and security options configured in each of the php.ini files for both the PHP4 & PHP5 installations. We also run suhosin with appropriate configurations in each of the php.ini files for both PHP4 & PHP5.
As we had expected, SuPHP allows our users to override server wide php.ini values with a local php.ini in the folder where their php is executed. That's how our previous configurations operated and it always worked well for our clients. We have a cron that reports any user php.ini modifications to us so we can deal with problems of security immediately. It's always allowed a degree of flexibility to our users while still allowing us to keep things relatively tight.
However, with the new SuPHP operation, what we hadn't expected was that even a totally empty php.ini dropped into the user's folder will force PHP4 & PHP5 execution back to a vanilla configuration. The server wide php.ini is not inherited and modified by the user's php.ini, but instead it's totally replaced.
If a php.ini is created in the user's folder, all security defines (disable_functions, register_globals, memory_limit etc.) and suhosin configurations are simply dismissed.
Zend Optimizer, ionCube and all other php.ini dependent inclusions are also tossed.
Reading carefully over CPanel's EA3 documentation again, I see the above behavior is exactly as expected, but we're finding it close to unworkable. If an end user creates a php.ini to tweak a single setting, they've effectively negated all our defaults.
I'd be really interested to hear how others are working with SuPHP's way of handling things.
Thanks for any ideas and feedback.
Best Regards,
LBJ



LinkBack URL
About LinkBacks
Reply With Quote






