Why do I get a 403 error when accessing my apache server?

Posted by nishan on Ask Ubuntu See other posts from Ask Ubuntu or by nishan
Published on 2012-06-23T11:15:52Z Indexed on 2012/06/26 3:24 UTC
Read the original article Hit count: 237

Filed under:
|

Im running Ubuntu 12.04 LTS on a system with 2 GB RAM and a 500 GB HDD.

My hard drive has 4 partitions:

  • Partition 1 = 40 gb Windows (NTFS, lable = win32)
  • Partition 2 = 320 gb Windows (FAT label = common)
  • Partition 3 = 40 gb Ubuntu (EXT4)

I installed apached2. Then, to change its default www directory, I ran gksu gedit /etc/apache2/sites-enabled/000-default and, in the editor, changed the location to /media/common/www.

After that I ran these commands in a terminal:

chmod 777 /media/common/www 
chmod 777 /media/common/www/*.*

After that I ran: firefox 127.0.0.1/index.php

It said:

Forbidden
You don't have permission to access / on this server.
Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80

Before my changes it was working fine.

How can I run my websites?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about apache