LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-10-2003, 12:35 AM   #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-10-2003, 12:41 AM   #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-10-2003 at 12:43 AM.
 
Old 11-10-2003, 12:44 AM   #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, 03:24 PM   #4
retiem
Member
 
Registered: Jul 2003
Location: Frankfurt, Germany
Distribution: Mint, Ubuntu, Knoppix, RHEL
Posts: 65

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


All times are GMT -5. The time now is 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration