Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just set up a webserver on a fedora 1 machine with all the updates. When I tried to access it on my other computer to see if it worked, it gave me a forbidden message and said that I didn't have permission to acces the root. Why is apache looking in root for the site. Any help would be great. Thanks.
P.S. I looked at the root directory and it's not set to root
Does apache have permission to read the webroot directory? Also you might try putting an index.html into your webroot since some configurations do not allow Apache to auto-index certain directories.
Somewhere in your httpd.conf there will be a line that looks like:
DocumentRoot "<some directory>"
This is the root from which files are served up by the web server. Usually on default installations of RH it's /var/www/html. You need to make sure that the apache user (the user account which the server runs under) can read this directory and the files in it.
Also, there is a configuration directive (don't know the exact details) that prevents Apache from auto-indexing the conents of directories (thus providing a default index.html listing the files in the directory). To test it out, try creating an index.html in the document root and make sure Apache can read it. If you need help figuring out whether Apache can read something, look on the Web or around here for a basic guide to Unix permissions -- there are many.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.