Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-18-2008, 11:39 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Alias on Apache to home dir on Fedora 8 throws Forbidden!

Hi everyone! I really need some help!

Before running Fedora 8 I was using Ubuntu 7.10 and I had LAMP installed.
I am working on two PHP projects of mine, and I made two Alias on apache.conf to redirect from /var/www/url? to /home/username/url? , where url? stands for the directory of my projects.
On Ubuntu this was working fine, I simply added that 2 lines to my apache.conf ("Alias /url /home/username/url") and when I entered "localhost/url" on my browser it showed my page!

Well, this weekend I decided to try Fedora 8, I set up the Lamp server, and everything was working fine, until I tried to make the same Alias I had on Ubuntu... Now the browser just throws forbidden at me. This is what I already tried to do:
  • I set the Alias on the "/etc/httpd/conf.d/alias.conf" file, like this:
    Alias /fontes "/home/vigilnt/workspace/fontes/public"
    <Directory "/home/vigilnt/workspace/fontes/public">
    	Options Indexes FollowSymLinks
    	AllowOverride All
    	Order allow,deny
    	Allow from all
  • I set the same thing on the "/etc/httpd/conf/httpd.conf" file
  • I changed the permissions of the public directories on my home to 777
  • I disabled SELinux
  • I tracked "/var/log/httpd/error_log" and this is what it says:
    [Tue Mar 18 15:19:24 2008] [error] [client] (13)Permission denied: access to /fontes/ denied

This LAMP server is only for developing, I don't need to connect to it from any other machine, i really need some help!



PS: I wanted to write this thread on the server section, and did it on the security one... If someone could change it I would appreciate. Thanks.

Last edited by vigilnt; 03-18-2008 at 11:46 AM.
Old 03-18-2008, 09:16 PM   #2
Registered: Oct 2004
Location: Where ever I put down Lappie
Distribution: Dragged kicking and screaming to RHEL
Posts: 132

Rep: Reputation: 15
what about the permissions on the home and user folder? The apache user will need execute permissions on these folders to get to the public folder?

Last edited by merize147; 03-18-2008 at 09:18 PM.
Old 03-19-2008, 09:52 AM   #3
LQ Newbie
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I've already solved this problem with some help from the fedoraforums.

It was a permissions issue. I had to add my user to a new group as well as apache.

Thanks anyway.


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
Facing 403 forbidden error for apache server in fedora 5 gopi_apparao Linux - Networking 7 08-04-2006 10:36 AM
Apache - "403 forbidden" message on any DIR below DocumentRoot stevod333 Linux - Software 12 06-12-2006 05:58 AM
Installing Fedora without deleting home dir eggi Fedora - Installation 2 07-17-2004 04:50 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM
Apache Home Dir Nige General 1 02-24-2004 05:10 PM > Forums > Linux Forums > Linux - Server

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