#1  
Old 26th July 2010, 11:15
ressel ressel is offline
Senior Member
 
Join Date: Apr 2007
Location: Denmark
Posts: 128
Thanks: 18
Thanked 5 Times in 5 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 26th July 2010, 12:21
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,452
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 26th July 2010, 13:29
ressel ressel is offline
Senior Member
 
Join Date: Apr 2007
Location: Denmark
Posts: 128
Thanks: 18
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by till View Post
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
Reply With Quote
  #4  
Old 26th July 2010, 13:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,452
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

- 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?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 26th July 2010, 13:33
ressel ressel is offline
Senior Member
 
Join Date: Apr 2007
Location: Denmark
Posts: 128
Thanks: 18
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by till View Post
- 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
Reply With Quote
  #6  
Old 26th July 2010, 13:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,452
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

And the user name of your apache server is apache?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
ressel (26th July 2010)
  #7  
Old 26th July 2010, 13:54
ressel ressel is offline
Senior Member
 
Join Date: Apr 2007
Location: Denmark
Posts: 128
Thanks: 18
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by till View Post
And the user name of your apache server is apache?
no, its www-data...

Changed it now. thanks
Reply With Quote
  #8  
Old 26th July 2010, 13:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,452
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
 
Default

Dont forget to change it in ispconfig server settings as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_layout and php gd branov Installation/Configuration 8 2nd September 2009 15:51
cyrus-sasl won't install on my ubuntu9.04 kameelperdza Installation/Configuration 1 13th June 2009 10:28
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Fresh Install on Debian cksrealm Installation/Configuration 12 22nd February 2006 16:14


All times are GMT +2. The time now is 15:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.