New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Userdir and su_php in apache
Using userdir when accessing by ip/~username it uses a default account rather than the user specified name from the URL
Im not sure where to add the config to allow this to work ? It works fine with mod_php (and www owned scripts) Any suggestions ?
it works fine though the main domain, Just the /~username im having issues with
Comments
Try editing suphp.conf, and setting check_vhost_docroot to false.
BTW, mod_ruid2 performs better than su_php and also works for other Apache-launched dynamic content, including SSIs, CGIs, etc. Might be worth considering.
I've installed ruid2. Same issue ill see whati can find in the config for it
You've got to set
RMode
to, IIRC,stat
(as opposed toconfig
). That will cause it to run Apache as the user who owns the requested file. (Given that, make sure you haveRMinUidGid
set properly and don't leave anythingchown
ed as the wrong user in someone's home directory.)ive run
in the user folder. and changing to stat worked.
Now ive got an issue which which basedir doesnt seem to work in the ~/user url, But i may disable it as as long as everything is 660 it cant be changed anyway
Thanks for the help ! Much appreciated
Solved it
was using
instead of
Thanks !
added spaces to show properly