Ubuntu: Web Server Root and Subdirectories

Posted on 2009-12-30
Medium Priority
Last Modified: 2013-12-06
Hi Techies--
I just downloaded a Ubuntu LAMP jumpbox to work with on vmware's player. This is waaayyy cool! I have a php voice app i want to move over from one of my other servers. I did this--creating a subdirectory tree under the /var/www/ web server root. So i have this app sitting under /var/www/voice/demo . I want to be able to call this demo up in a browser with the url:



...but the page won't come up.

However, if I type:



the default site server index page does come up!

I'd like to leave the web server root directory for the full blown version of the app later--but-- still be able to access the demo app under a subdirectory tree.

Any advice on how I can set this up?
Question by:Paula DiTallo
  • 3
  • 2
LVL 10

Expert Comment

ID: 26151845
check your permissions on the subfolders

Expert Comment

ID: 26152022
By any chance check whether u r directory listing is off or On .... if you have index.html under /var/www/voice, then it should work fine, just for a try remove then index.html and create some directories in that location. If you access that directory if it is displaying all the directories then double check u r index.html file for permissions as suggested by nabeelmoidu

Author Comment

by:Paula DiTallo
ID: 26159759
I think the permissions are ok, but the ownership of the directory/file may well be an issue. With the jumpbox, I have a userid called admin -- I suspect this may be the issue since the owner on the directory I created would have defaulted to 'admin' while the web server root directory owner is root.  

As far as I know, I can't log into the jumpbox as root--so, is it possible for admin to relinquish ownership of the directories and files over to root? (e.g. sudo somecommand -and -a -switch)

Here's the screen shot of what I see:

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments


Accepted Solution

Rajeshpola earned 2000 total points
ID: 26161099
Can you try one simple thing before going further ... if it is a permissions issue, can u please try doing chown to root and try again.

Author Comment

by:Paula DiTallo
ID: 26172762
chown! I'd forgotten that command!:-) OK, I'll try that next.

Expert Comment

ID: 26179262
okie ...

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question