Apache on fedora, help please :)
Posted 13 July 2010 - 04:33 AM
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 ?
Posted 13 July 2010 - 07:15 AM
The owner of the folder should be the user running apache. Here's an example:
root@localhost:~$ ls -l /var/www/html
-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, 13 July 2010 - 07:15 AM.
BinRev is hosted by the great people at Lunarpages!