LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 07: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, 06: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, 07: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, 10: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, 11:34 AM   #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-10-2001, 11:58 PM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:39 AM.

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
Open Source Consulting | Domain Registration