0

Hi,

I have this main folder (with some sub folders and files) in my ubuntu.

/var/www/asg

When I run this http://localhost/asg/index.php in browser, I get this error.

Forbidden

You don't have permission to access /asg/index.php on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80

This is what i do but still doesn't work

ubuntu@ubuntu:~$ sudo chown -hR ubuntu /var/www/asg

How can i solve the problem?

Thanks

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by veledrom
0

Have you tried to put your asg directory in the folder: /var/www/html

This is where you have to place your website/application on a default Fedora webserver. I'm not an Ubuntu user, so it's just a guess.

0

Everything works fine in var/www/ in my ubuntu apart from asg. I don't have html and don't need html directory though.

Edited by veledrom: .

0

What are the filemodes of the asg directory and index file?

Can you give the result of "ls -l" for them?

0

I get this:

ubuntu@ubuntu:~$ ls -l /var/www/asg/
-rwxrwxrwx 1 ubuntu ubuntu  126 2010-01-11 13:56 index.php
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.