LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2001, 08:37 PM   #1
Haakon
LQ Newbie
 
Registered: Dec 2001
Posts: 5

Rep: Reputation: 0
apache permission problem


Hello, just starting out with my linux RH box with Apache.
But I`m encountering this problem that I don`t understand, and would like to fix quite quick, so please let me have some suggestions. It is really an Apache problem though (I think).
I get this when I type in the IP address of a IP based virtual host (my only one):

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


--------------------------------------------------------------------------------

Apache/1.3.12 Server at www.ballskills.com Port 80


What`s the most common things newbies might have overlooked when they encounter this HTTP header?

Is there a specific module that I must have installed for virtual hosts to work?

I use this:
<Directory "/home">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

and the pages are on i.e /home/haakon/public_html
thanks
 
Old 12-10-2001, 07:45 AM   #2
h1kz0r
LQ Newbie
 
Registered: Dec 2001
Location: Abu Dhabi, UAE
Distribution: Linux
Posts: 13

Rep: Reputation: 0
Sounds like a permissions issue, files and dirs for the web server should be owned by the same user the server is running as.

check permissions using: ls -l
change permissions using: chown USER:GROUP file
chown -R USER:GROUP DIR
with -R all dirs/files in this directory will be modified as well.
 
Old 12-10-2001, 08:49 AM   #3
Haakon
LQ Newbie
 
Registered: Dec 2001
Posts: 5

Original Poster
Rep: Reputation: 0
my USER is "haakon" and group is "haakon", how can I specify the user that the server (you mean virtual server, right?) should be running as?
thanks
 
Old 12-10-2001, 11:28 AM   #4
h1kz0r
LQ Newbie
 
Registered: Dec 2001
Location: Abu Dhabi, UAE
Distribution: Linux
Posts: 13

Rep: Reputation: 0
ok

the user and group apache or whatever web server will run as is specified in the conf file (httpd.conf). example if you are using redhat 7.1 you will find it in /etc/httpd/conf/httpd.conf, usually it's there, or /etc/httpd/httpd.conf... just figure out what's the user it's running as and do: chown -R USER:GROUP DIR where DIR is the web server files directory.... in redhat 7 and above the user and group are "apache" and sometimes it's "nobody"... goodluck...
 
Old 12-10-2001, 12:34 PM   #5
Haakon
LQ Newbie
 
Registered: Dec 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks!

Thanks h1kz0r, it now works because I nobody`ed the whole /home directory. But this causes the users to be erased (I should probably just have done it on the public_html files), but no problem now as I`m just testing out. But is it possible to leave users as is in the /home dir and specify more users in httpd.conf? I`m looking around at another hosting server and they have the specific users specified on all their accounts, how do they do that?
Thanks again!
 
Old 12-11-2001, 12:58 AM   #6
h1kz0r
LQ Newbie
 
Registered: Dec 2001
Location: Abu Dhabi, UAE
Distribution: Linux
Posts: 13

Rep: Reputation: 0
www.linux.org and read the apache howto as well as the virtual hosts one.
 
  


Reply


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
vsftpd / Apache permission tbarsness Linux - Security 3 04-18-2005 08:50 AM
No permission using Apache sanmartin Linux - Networking 2 09-22-2004 01:48 PM
SUSE 9.1 with Apache - You don't have permission... rover Linux - Networking 0 06-27-2004 02:04 PM
Apache File Permission Strange Problem hcubed Linux - Networking 1 05-15-2004 02:09 AM
Apache 2 + permission problems aluminum Linux - Newbie 4 11-03-2003 10:06 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration