LinuxQuestions.org
Help answer threads with 0 replies.
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 11-09-2003, 11:35 PM   #1
deee
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
Quote:
Forbidden

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

thx
de
 
Old 11-09-2003, 11:41 PM   #2
megaspaz
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
deee
LQ Newbie
 
Registered: Nov 2003
Posts: 7

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

i dont care for the fact im a here
works

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
retiem
Member
 
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 77

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
ServerName www.mydomain1.com
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /var/www/mydomain2
ServerName www.mydomain2.com
</VirtualHost>

Please shed some light!!!
Thanks!!!!
 
  


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
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

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

All times are GMT -5. The time now is 03:43 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