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

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.

Grateful for any help.

share|improve this question
Is there anything showing up in the apache logs? Typically: /var/log/httpd/access_log or /var/log/httpd/error_log – malonso Jul 14 '10 at 21:53
I found the "/home/webapps" string in file "/etc/httpd/conf.d/phpapp.conf" using the command "find / -type f -print | xargs grep "/home/webapps/">> /tmp/bigsearch2.log 2>/dev/null" So phpapp.conf contained the path to my public folder – one Jul 14 '10 at 22:23
up vote 1 down vote accepted

I think you have used the wrong document root. According to the Rightscale support site the the docume troot seems to be at /home/webapps/$APPLICATION/current. You may also take a look onto the Rightscale Support site

share|improve this answer
Thank you much appreciated. – one Jul 14 '10 at 22:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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