LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2005, 02:43 PM   #1
wrbob
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Apache permissions doing... nothing?


What would normally be a simple setup of apache has turned into something far from that (at least for me). Hopefully someone can point out my mistake.

Firstly I've decided not to use .htaccess files. Which I normally use... so my problem is most likely in my conf i guess.

Anyways. Apache refuses to index my symlinks and if i follow the symlinks explicitly I get a 403 error. My error log states that symlinks aren't allowed and just says more stuff about permission denied.

my home directory is /var/www/html/ with a symlink:

v23 -> /home/v23/public_html/

I've recursively set my permissions to the v23 folder at 755 for good measure as well.

So again:
1. symlinks not being shown in the root index
2. forbidden error when following a symlink. (I'm sure relate to above)

Here is my relavent conf:
Quote:
DocumentRoot "/var/www/html"

<Directory />
Order Deny,Allow
Deny from All
</Directory>

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<Directory /home/*/public_html>
Options MultiViews Indexes FollowSymLinks IncludesNoExec
AllowOverride None
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

DirectoryIndex index.html index.php index.html.var
 
Old 08-01-2005, 08:30 AM   #2
d00msdaypr0phet
Member
 
Registered: Mar 2005
Location: Oregon
Distribution: Debian, Ubuntu, Whatever
Posts: 32

Rep: Reputation: 15
Is V23 an actual user? If it is you should't need the symlink. Also its probably becuse the owner:group of the v23 dir is not apache so you caould try to add the v23 user to the apache group or chown the v23 dir to the owner:group of apache then try the symlink if you need to.


-=DDP=-
R.I.P
Kodak Gold
My dawg forever
 
Old 08-01-2005, 02:10 PM   #3
wrbob
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
yea v23 is an actual user. but i can't access the directory www.domain.com/~v23/ - i get a 403 forbidden error although i have permissions set to 755 for the v23/public_html directory. i've also chowned the directory to apache with and given group access to v23 to no avail.

after fooling around i've found i can sym link directories within the root html directory. no surprise there really. just shows the followsymlinks directive is ok (?). so it must be a permissions issue with hopping out of the /var/www/html directory to v23's public_html directory i guess?

normally i'd say this should be np but i just can't seem to nail down my mistake.

thanks.
 
Old 08-01-2005, 02:24 PM   #4
d00msdaypr0phet
Member
 
Registered: Mar 2005
Location: Oregon
Distribution: Debian, Ubuntu, Whatever
Posts: 32

Rep: Reputation: 15
205 # UserDir is now a module
206 #UserDir public_html
207 #UserDir disabled root
208
209 #<Directory /home/*/public_html>
210 # AllowOverride FileInfo AuthConfig Limit
211 # Options Indexes SymLinksIfOwnerMatch IncludesNoExec
212 #</Directory>
213
 
Old 08-01-2005, 02:25 PM   #5
d00msdaypr0phet
Member
 
Registered: Mar 2005
Location: Oregon
Distribution: Debian, Ubuntu, Whatever
Posts: 32

Rep: Reputation: 15
damn it....I wasn't done
This may sound stupid but do you have the public_html dir created buy the user in the users ~?
 
Old 08-22-2005, 08:46 AM   #6
gwh
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
If the sym-link is owned by root, you will get a 403.

I just discovered this and was googling looking for known bugs.

--gh
 
  


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
Apache permissions RedHatCore Linux - Software 4 08-25-2005 11:35 PM
Apache permissions mylo2003 Linux - Newbie 7 08-01-2003 07:06 PM
apache and permissions dkc_ace Linux - Software 19 01-17-2003 08:38 PM
Apache Permissions Canadian_2k2 Linux - Networking 4 12-02-2002 01:51 PM
apache permissions, maybe? roadie Linux - General 4 06-14-2001 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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