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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
fahim
Forum Commoner
Posts: 36
Joined: Sun Jan 05, 2014 7:06 pm
Location: Dhaka, Bangladesh

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

Post 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.
Attachments
not_found.png
default_page.png
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post by Celauran »

The default page seems to suggest your document root is located at /var/www/html rather than /var/www
fahim
Forum Commoner
Posts: 36
Joined: Sun Jan 05, 2014 7:06 pm
Location: Dhaka, Bangladesh

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

Post 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.
fahim
Forum Commoner
Posts: 36
Joined: Sun Jan 05, 2014 7:06 pm
Location: Dhaka, Bangladesh

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

Post by fahim »

Unfortunately I'm getting any option to mark this post as solved :( . How can I do that?
Post Reply