Hi cPanel and all,
I've read a bunch of threads on this and I've done my best reading through the cPanel Documentation but I'm afraid I'm not sure of the correct approach, so i'm chasing clarification please.
If not DSO, open_basedir tweak is no use, right? Well, since I want to enforce that still, using the SuPHP handler of course, I understand that I'll need to use custom php.ini files per user (right?)
So, I guess I have a few questions.
Some of these questions are half answered elsewhere, but not with enough certainty to answer them for me. If anyone knows the answers, I'd be grateful. Would love some kind of instruction on how to implement what I'm after (since I'm thinking a lot of WHM newbies probably don't realise they need to jail people themselves with SuPHP, despite the notice that open_basedir doesn't work with it) but I obviously don't expect it. I'll be happy with whatever I get. Thanks
I've read a bunch of threads on this and I've done my best reading through the cPanel Documentation but I'm afraid I'm not sure of the correct approach, so i'm chasing clarification please.
If not DSO, open_basedir tweak is no use, right? Well, since I want to enforce that still, using the SuPHP handler of course, I understand that I'll need to use custom php.ini files per user (right?)
So, I guess I have a few questions.
- Where are the individual php.ini files *supposed* to be stored?
- Users can edit these to their liking, right? And they can override the settings in the global php.ini?
- What happens if a user does not have a php.ini? Does it default to the global?
- Where should SuPHP_ConfigPath be set? In a .htaccess in each users' web root or somewhere where they can't mess with it? (preferable)
- What if i didn't want them messing with their php.ini either? (because I rather they didn't, i'm only doing this so they can't break out of their home folder and into someone elses)
Some of these questions are half answered elsewhere, but not with enough certainty to answer them for me. If anyone knows the answers, I'd be grateful. Would love some kind of instruction on how to implement what I'm after (since I'm thinking a lot of WHM newbies probably don't realise they need to jail people themselves with SuPHP, despite the notice that open_basedir doesn't work with it) but I obviously don't expect it. I'll be happy with whatever I get. Thanks