wierd 403 error

Discussion in 'Installation/Configuration' started by ressel, Jul 26, 2010.

  1. ressel

    ressel Member


    Everytime I make some changes on a clients website it starts showing 403 error.

    Then i do following chmod -R 755 web/
    in the domains folder /var/www/domain.tld/

    And then it works again.

    Im using Debian, and client is using SuPHP
  2. till

    till Super Moderator

    The website may not have permissions 755 as this is a security problem and allows other websites on your server to get access to the database data of this site. The permissions that ispconfig sets automatically are ok. So if you get a 403 with ispconfigs default permissions, then the files are owned by a wrong user. Please chown them to the website user and client group of this website.
  3. ressel

    ressel Member

    This is weird, when i look in ispconfig in options field it says:
    Linux User web24
    Linux Group client16

    and when i look in the folder it's the same owner
  4. till

    till Super Moderator

    - Are all files and subfolders owned by these user and group?
    - Is the user of the apache webserver member of the client16 group (see /etc/group) file?
  5. ressel

    ressel Member

    yes, all files a owned even subfoldes / files by this user / group.

  6. till

    till Super Moderator

    And the user name of your apache server is apache?
  7. ressel

    ressel Member

    no, its www-data...

    Changed it now. thanks :)
  8. till

    till Super Moderator

    Dont forget to change it in ispconfig server settings as well.

Share This Page