Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hope you can help. This is my first time trying Ubuntu/Linux.

I am logged in as root I have downloaded and installed LAMP and PHPMYADMIN. I get the test page under localhost say that It works and is installed Correctly. I have also put my files in the /var/www. they are PHP files When I put the address localhost/(page name.php) I get an error saying

 Not Found

 The requested URL /index.php was not found on this server.
 Apache/2.2.22 (Ubuntu) Server at localhost Port 80

I Have put the files in the wrong folder?? If I look in the "/etc/ap[ache2/sites-available/default", It tells my my DocumentRoot is /var/www

Would love somehelp on this please

Many thanks GF

share|improve this question
1  
How did you install LAMP and phpmyadmin? –  th0th Sep 13 '12 at 13:42
1  
Please edit your question to add the output of ll -L /var/www –  SirCharlo Sep 13 '12 at 13:56
1  
did you name you page name.php index.php cause as the error says can't find index.php –  blade19899 Sep 13 '12 at 14:18

4 Answers 4

Check out error log (tail /var/log/apache2/error.log) in order to find out exact path that Apache tries to find.

share|improve this answer

how you put your php files in /var/www? The apache user www-data has the permission to run these php files?

share|improve this answer

It really solved my problem dude just click link given below and follow the instruction

http://jyotiranjanpattnaik.wordpress.com/2012/08/02/installing-phpmyadmin-in-ubuntu-12-04-lts/

share|improve this answer
2  
while this may theoretically answer the question it would be more helpful if you summarized the info at that link. please edit your answer to make it more complete. –  amc Sep 19 '13 at 18:30

I had the same problem and using the apache logs I've found that the solution is to place your php code inside /html folder so -

sudo mv /var/www/FILENAME.php /var/www/html
share|improve this answer

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.