Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Making webpages on the server accessible

I have just set up a LAMP EC2 instance using rightscale when I got to the link:


I get the standard apache welcome page. Now on my server I have the directory '/var/www/html/' where I can put my 'publicly' viewable web-pages. I have added a directory in here with some php script which are now at:


When I go to:


The script doesnt run (php is working) - i.e. I get 'Not found' - i.e. cant even find the page. I have set permissions to the directory and file to 777 (using chmod).

Can anyone please tell me what I am not doing? I want to be able to run the php from a web browser

share|improve this question

migrated from Jul 15 '10 at 13:29

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Zoredache, Scott Pack, Dan, Ladadadada, Lucas Kauffman Aug 1 '12 at 20:41

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

Check you httpd.conf file. It seems to be a configuration issue with DocumentRoot.

IIRC, Apache on debian is set to have a DocumentRoot configured like this

DocumentRoot /var/www

If so, you can view your script via your browser with following URL:

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.