LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-24-2010, 06:53 PM   #1
scarletxfi
LQ Newbie
 
Registered: Dec 2009
Distribution: Arch Linux
Posts: 6

Rep: Reputation: 0
Lost access to my site


I wanted to add a user to be able to edit the "/var/www/html" folder but I stuffed up the permissons, so I decided to go back to the nomral configuration:
Code:
[root@14 www]# ls -l
total 35
drwxr-xr-x  2 root      root 4096 Apr 25 08:44 cgi-bin
drwxr-xr-x  4 root      root 4096 Apr 24 22:40 error
drwxr-xr-x  2 root      root 4096 Apr 25 09:48 html
drwxr-xr-x  3 root      root 4096 Mar 16 08:41 icons
drwxr-xr-x 14 root      root 4096 Mar 16 08:42 manual
drwxr-xr-x  2 webalizer root 4096 Apr  1 18:58 usage
as you can see root has access to the /html folder but I still get a
"
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (CentOS) Server at
"
when I access the site. I've already looked around and tried to fix it but nothing seems to work.

SElinux is not on
I can't access my site locally

how do I make the site readable again ?


cheers

Last edited by scarletxfi; 04-24-2010 at 07:03 PM.
 
Old 04-24-2010, 07:54 PM   #2
scarletxfi
LQ Newbie
 
Registered: Dec 2009
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: 0
fixed by using
Code:
chmod +x /var/www
 
Old 04-27-2010, 08:51 PM   #3
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 175

Rep: Reputation: 31
I don't know how apache installs on your distribution, but you may have to change group permissions for the web folders. Mine (debian) has the web folders belonging to the group www-data with read and write permission. Other users only have read permission. You could then add whatever user you wish to have access to the www-data group.
 
Old 04-28-2010, 03:39 AM   #4
scarletxfi
LQ Newbie
 
Registered: Dec 2009
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah.. I don't like the way CentOS set things up...I'll probably start using Arch Linux as my webserver..

thanks anyway..
 
  


Reply

Tags
apache


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access site bonn Linux - Newbie 2 03-20-2010 11:16 PM
[SOLVED] How to access my site from outside konzo Linux - Server 5 02-03-2010 12:46 AM
restricting access to a site DJOtaku General 3 04-28-2006 01:11 PM
Can't access this site?!! yzrider210 General 9 11-19-2003 12:28 AM
I lost the SITE!! udendra Linux - General 1 11-10-2003 05:22 AM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration