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.
Virtualmin Issue
ServerSharp
Member, Host Rep
Hopefully somebody on here can shed some light...
All cPanel imported accounts in Virtualmin are coming up with a 403 forbidden error. I've tried chowning, chmodding, etc but can't get the error to disappear.
Any ideas?
Comments
Log files should shed some light on it.
su into the webserver user and try accessing the folders one at a time?
cd /home/website
cd /home/website/public_html
etc (not actually sure of Virtualmin directory structure). This once helped me fix an issue with webserver permissions.
should but don't
I thought that was the user...
I'm pretty sure it works fine when accounts are created via Virtualmin and not cPanel backups.
Change the shell to something that you can su into. (change it back after..)
The user doesn't seem to be active at all (apache). I'm not sure. The main website is hosted on the server, however, and it works fine.
It's just some of them (most of them..) that do not work at all.
Are you sure the webserver user is called apache?
Edit: http://stackoverflow.com/questions/2509334/finding-out-what-user-apache-is-running-as
Edit2: or just ls -l and investigate permissions
Yup it is.
In Virtualmin the webserver owner doesn't have to be the site owner.
In Virtualmin every site will have it's own user. You can group sites so there is one owner per group.
The names of the groups and users can be found at:
Virtualmin->Edit Virtual Server->Administration username
Virtualmin->Edit Virtual Server->Administration group
Virtualmin->Edit Virtual Server->Configurable settings->Administration password (Show)
If you need specific help with VM I can help you out, PM me and we can talk about it.
I've tried chowning to that sites admin user as well.
This is what I mean:
http://d87studios.com/blog/2012/09/this-account-is-currently-not-available/
Seems to be accessible under web user.
SELinux disabled/permissive?
Currently disabled.
post error/logs maybe?
There's nothing to post - nothing related to this at all in there.
Virtualmin can have Apache run as 'apache'/'www-data' (for RHEL/Debian-based), or using suexec/FCGId, which runs as the account's username. Check this configuration and make sure each docroot has correct permissions.
You should also be able to su to apache with:
su -s /bin/bash -l apache
It seems they do, but something isn't right as it's still giving the forbidden error
Which Apache process mode are you using?
Also ensure that each parent directory has execute permissions to apache (or all users with suexec/FCGId).
e.g.:
/var/www/user/htdocs
Each of var, www, user, and htdocs must be 'executable' by 'user' and/or 'apache'.
Well, I'm stumped.
Nothing in the access_log either.
Resolved!!
care to share the solution?
The VirtualHost tag in Apache config didn't specify an IP
Strange then it should have just gone to the webserver default website you would think, instead of the 403