LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-02-2008, 11:28 AM   #1
mrukjames
LQ Newbie
 
Registered: Jan 2008
Posts: 26

Rep: Reputation: 15
How to get Apache running on Open Suse- unknown 403 error


Hi, I am trying to get apache running on my open suse linux computer. Apache has started and when I type localhost into my browser it produces a 403 error.

However ALL the permissions on my directory and ALL files in apache are set to read and execute- including the index.html file.

In the Apache error log the following data is produced:

Code:
[Thu Oct 02 15:24:12 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Oct 02 15:24:13 2008] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/favicon.ico
[Thu Oct 02 15:35:04 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Oct 02 15:35:10 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
[Thu Oct 02 15:35:13 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/
What is /srv/www?

There also doesn't appear to be any problem with my configuration as follows:

Code:
<Directory /home/james/AMW>
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Allow from all
</Files>

# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var feedback.html
Please please please help me to get this started.

Appreciate YOUR help in advance.

Thanks,
James
 
Old 10-02-2008, 12:32 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mrukjames View Post
Hi, I am trying to get apache running on my open suse linux computer. Apache has started and when I type localhost into my browser it produces a 403 error.

However ALL the permissions on my directory and ALL files in apache are set to read and execute- including the index.html file.

In the Apache error log the following data is produced:

What is /srv/www?

Please please please help me to get this started.
The /srv/www/htdocs is the root path where your html docs are stored. Does that directory exist? What are the permissions on it? And can you access the site from the machine itself, or are you getting this problem only when you try to access it from another computer?
 
Old 10-02-2008, 03:51 PM   #3
mrukjames
LQ Newbie
 
Registered: Jan 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Hi, thank you for your reply.

If srv/www/htdocs is where my html files are meant to be, then my directory path in httpd.conf must be wrong- <Directory /home/james/AMW>? My html files are in /home/james/AMW. I've tried putting them in /srv/www and /srv/www/htdocs but it's still not working.

Yes I've checked the permissions for this directory which exists and everything in that path has read an execute permissions. I can't even get it to work on my own computer.

Please please please please help
 
Old 10-02-2008, 06:29 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
If you want files in your home directory, you should have a directory named 'public_html' in your /home/james directory. To access it you need to have the path entered under USER_DIR in the httpd.conf file for apache. On Suse, the files for apache server are in the /srv/www/htdocs directory and sub-directories. How did you try putting filed in the /srv/www/htdocs directory?
 
Old 10-02-2008, 06:42 PM   #5
mrukjames
LQ Newbie
 
Registered: Jan 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Hi guys,

I tried it again, putting the files in the srv/www/htdocs directory- and it worked!

Thanks for your help guys. I really appreciate it.

God Bless you!
James

 
  


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
Trying to use Apache 2 & PHP5, get 403 error Suse 11 astacha Linux - Server 8 08-04-2008 10:44 PM
403 error in Apache watcher69b Linux - Server 3 05-27-2008 08:13 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
Apache 403 Error?? jlsain Linux - Software 4 05-08-2004 03:45 PM
apache 403 error fix cortj Linux - Software 0 02-25-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:51 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
Open Source Consulting | Domain Registration