Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Virtualmin Issue
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.

Virtualmin Issue

PacketVMPacketVM Member, Host Rep
edited March 2013 in Help

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

  • jarjar Patron Provider, Top Host, Veteran

    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.

  • PacketVMPacketVM Member, Host Rep

    @jarland said: Log files should shed some light on it.

    should but don't :(

    @Jono20201 said: su into the webserver user and try accessing the folders one at a time?

    [root@dlx1060-chelt ~]# su apache
    This account is currently not available.

    I thought that was the user...
    I'm pretty sure it works fine when accounts are created via Virtualmin and not cPanel backups.

  • Jono20201Jono20201 Member
    edited March 2013

    @dominicl said: This account is currently not available.

    Change the shell to something that you can su into. (change it back after..)

  • PacketVMPacketVM Member, Host Rep

    @Jono20201 said: 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.

  • perennateperennate Member, Host Rep
    edited March 2013

    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

  • PacketVMPacketVM Member, Host Rep

    @perennate said: Are you sure the webserver user is called apache?

    Yup it is.

  • snelwegsnelweg Member
    edited March 2013

    @dominicl said: I thought that was the user...

    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.

  • PacketVMPacketVM Member, Host Rep

    I've tried chowning to that sites admin user as well.

  • @dominicl said: 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.

    This is what I mean:
    http://d87studios.com/blog/2012/09/this-account-is-currently-not-available/

  • PacketVMPacketVM Member, Host Rep

    @Jono20201 said: This is what I mean:

    Seems to be accessible under web user.

  • @dominicl said: Seems to be accessible under web user.

    SELinux disabled/permissive?

  • PacketVMPacketVM Member, Host Rep

    @Jono20201 said: SELinux disabled/permissive?

    Currently disabled.

  • AnthonySmithAnthonySmith Member, Patron Provider

    post error/logs maybe?

  • PacketVMPacketVM Member, Host Rep

    @AnthonySmith said: 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

  • PacketVMPacketVM Member, Host Rep

    @amhoab said: Check this configuration and make sure each docroot has correct permissions.

    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'.

  • PacketVMPacketVM Member, Host Rep

    Well, I'm stumped.

    Nothing in the access_log either.

  • PacketVMPacketVM Member, Host Rep

    :D Resolved!!

  • @dominicl said: Resolved!!

    care to share the solution?

  • PacketVMPacketVM Member, Host Rep

    @snelweg said: care to share the solution?

    The VirtualHost tag in Apache config didn't specify an IP

  • twaintwain Member

    Strange then it should have just gone to the webserver default website you would think, instead of the 403

Sign In or Register to comment.