PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Oct 23, 2019 11:45 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Apr 20, 2014 11:07 pm 
Offline
Forum Commoner

Joined: Sun Jan 05, 2014 8:06 pm
Posts: 36
Location: Dhaka, Bangladesh
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
not_found.png [ 48.85 KiB | Viewed 5344 times ]
default_page.png
default_page.png [ 137.98 KiB | Viewed 5345 times ]
Top
 Profile  
 
PostPosted: Mon Apr 21, 2014 1:18 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
Apache is probably reading from a different place than /var/www.

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


Top
 Profile  
 
PostPosted: Mon Apr 21, 2014 8:10 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
The default page seems to suggest your document root is located at /var/www/html rather than /var/www


Top
 Profile  
 
PostPosted: Tue Apr 22, 2014 10:25 pm 
Offline
Forum Commoner

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


Top
 Profile  
 
PostPosted: Tue Apr 22, 2014 10:28 pm 
Offline
Forum Commoner

Joined: Sun Jan 05, 2014 8:06 pm
Posts: 36
Location: Dhaka, Bangladesh
Unfortunately I'm getting any option to mark this post as solved :( . How can I do that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group