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

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.

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

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

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

I get this:

ubuntu@ubuntu:~$ ls -l /var/www/asg/
-rwxrwxrwx 1 ubuntu ubuntu  126 2010-01-11 13:56 index.php
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.