Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-09-2003, 11:35 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 7

Rep: Reputation: 0
File permissions with apache

after two days trying to get apache up n running, i finally got it up a few hours ago...
i can view localhost (comes up with the apache has been sucessfuflly installed thingie) yet, when i wish to view localhost/~de it comes up with

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
i manually set the persmissions, even to 777 but its still coming up with that error :S
from what ive worked on with jsp files at uni, ive needed a htacess file, but i dont have the fainted clue on how to go about that.
also, i have created a public_html with an index.html file in /de

Old 11-09-2003, 11:41 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
assuming that localhost/~de expands to /home/de/public_html, then you'll need to set exec permissions on all directories in that path - home, de, and public_html.

ie. chmod 711 /home/de
chmod 711 $HOME/public_html

the directory home should already have exec permissions (mine is 755).

Last edited by megaspaz; 11-09-2003 at 11:43 PM.
Old 11-09-2003, 11:44 PM   #3
LQ Newbie
Registered: Nov 2003
Posts: 7

Original Poster
Rep: Reputation: 0
i love this place =)

i dont care for the fact im a here

i will be bother u here a bit thought.. im new, and experimenting with everything, particuarly setting this web server up
Old 03-31-2004, 02:24 PM   #4
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80

Rep: Reputation: 15
Hi folks!
I'm experiencing the same permissions problem!

My virtual host files are in /var/www/mydomain1/

I DO have exec permission (755) on /var, /var/www/ and /var/www/mydomain1/

I get the "You don't have permission to access / on this server." error even if I point my browser to localhost! BUT if I point it to /var/www/mydomain1/ I AM able to see all files!

Here is my virtual host definition on httpd2.conf (BTW, I'm running Mdk 9.2):

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /var/www/mydomain1

<VirtualHost *:80>
DocumentRoot /var/www/mydomain2

Please shed some light!!!


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
Apache file permissions tntcoder Linux - Newbie 2 08-23-2005 06:50 PM
Apache and File Permissions Matir Linux - Security 6 08-13-2005 12:22 AM
File Permissions with Apache Herbalist Linux - Networking 5 06-17-2005 01:39 PM
Apache and File Permissions notstrider Linux - Networking 1 03-14-2003 11:44 AM
file permissions w/apache php caguru Linux - Newbie 3 04-26-2001 07:52 AM > Forums > Linux Forums > Linux - Newbie

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

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