
26th July 2010, 11:15
|
|
Senior Member
|
|
Join Date: Apr 2007
Location: Denmark
Posts: 119
Thanks: 15
Thanked 5 Times in 5 Posts
|
|
wierd 403 error
Hello,
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
|

26th July 2010, 12:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,191 Times in 3,209 Posts
|
|
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.
|

26th July 2010, 13:29
|
|
Senior Member
|
|
Join Date: Apr 2007
Location: Denmark
Posts: 119
Thanks: 15
Thanked 5 Times in 5 Posts
|
|
Quote:
Originally Posted by till
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.
|
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
|

26th July 2010, 13:31
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,191 Times in 3,209 Posts
|
|
- 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?
|

26th July 2010, 13:33
|
|
Senior Member
|
|
Join Date: Apr 2007
Location: Denmark
Posts: 119
Thanks: 15
Thanked 5 Times in 5 Posts
|
|
Quote:
Originally Posted by till
- 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?
|
yes, all files a owned even subfoldes / files by this user / group.
client16:x:5015:apache
|

26th July 2010, 13:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,191 Times in 3,209 Posts
|
|
And the user name of your apache server is apache?
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

26th July 2010, 13:54
|
|
Senior Member
|
|
Join Date: Apr 2007
Location: Denmark
Posts: 119
Thanks: 15
Thanked 5 Times in 5 Posts
|
|
Quote:
Originally Posted by till
And the user name of your apache server is apache?
|
no, its www-data...
Changed it now. thanks
|

26th July 2010, 13:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,191 Times in 3,209 Posts
|
|
Dont forget to change it in ispconfig server settings as well.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 20:14.
|
|
Recent comments
14 hours 27 min ago
21 hours 8 min ago
1 day 58 min ago
1 day 2 hours ago
1 day 11 hours ago
1 day 20 hours ago
1 day 21 hours ago
2 days 53 min ago
2 days 5 hours ago
2 days 5 hours ago