Page 1 of 1

[SOLVED] Apache default page showing, but others not !!!

Posted: Sun Apr 20, 2014 11:07 pm
by fahim
Hi,

I'm using Ubuntu 14.04. Have installed LAMP server using this tutorial http://www.n00bsonubuntu.net/content...-ubuntu-13-04/

Installation was successful. Even "Apache2 Ubuntu Default Page" is showing accurately. I can access PhpMyAdmin perfectly. My problem is that, browser can't show any files (php/html), which I'm keeping in the /var/www/ directory.

To test the PHP version and details, I've created a file named "testing.php". Keep that file in the www directory, but my browser is showing "NOT FOUND" !!!

Please check the attached screen shot. This is a really weird problem.

Please help me experts. Thanks in advance.

Re: Apache default page showing, but others not !!!

Posted: Mon Apr 21, 2014 1:18 am
by requinix
Apache is probably reading from a different place than /var/www.

What is the contents of all the files under /etc/apache2/sites-enabled?

Re: Apache default page showing, but others not !!!

Posted: Mon Apr 21, 2014 8:10 am
by Celauran
The default page seems to suggest your document root is located at /var/www/html rather than /var/www

Re: Apache default page showing, but others not !!!

Posted: Tue Apr 22, 2014 10:25 pm
by fahim
Thanks for your great reply. Recently document root is moved to /var/www/html. I didn't know that. My problem is solved now. Thanks for your support. Marking this post as solved.

Re: Apache default page showing, but others not !!!

Posted: Tue Apr 22, 2014 10:28 pm
by fahim
Unfortunately I'm getting any option to mark this post as solved :( . How can I do that?