Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

"http://ec2-xxx.compute-1.amazonaws.com/"

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:

"/var/www/html/newdir/somefilename.php"

When I go to:

"http://ec2-xxx.compute-1.amazonaws.com/newdir/somefilename.php"

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

1 Answer 1

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

 
discard

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.