Sign in to follow this  
Followers 0
Djipp

Apache on fedora, help please :)

2 posts in this topic

Hey !

So I am going to run a website on fedora. Got apache installed and its online.

I used to run the website on windows Xp earlier and it worked fine. But now when I have

placed all the folders in /var/www/html it just brings me a "You don't have permission to access / on this server." error.

When my html folder is empty it brings my to the fedora test page, so I know its working but somehow whenever I place

something in the html map it gives me that error...

What's wrong ?

0

Share this post


Link to post
Share on other sites

First check the ownership of the folder

The owner of the folder should be the user running apache. Here's an example:

==============================================================

root@localhost:~$ ls -l /var/www/html

total 8

-rw-r--r-- 1 www-data www-data 177 2010-03-03 19:46 index.html

-rw-r--r-- 1 www-data www-data 21 2010-03-03 20:10 test.phpapache

root@localhost:~$ ps aux |grep apache

www-data 2016 0.0 0.7 33732 3696 ? S 08:08 0:00 /usr/sbin/apache2 -k start

==============================================================

www-data is the user and group

Edited by emwav
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0