Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-13-2009, 12:49 AM   #1
LQ Newbie
Registered: Aug 2009
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Question Apache var/www

I run an Ubuntu server with Apache2, Bind9, Postfix, MYSQL and Squid. My OS runs of sda which is encrypted. My db and web pages are in media/sdc1 a totally seperate HD. I have a further HD sdb1 which I use for backup and my swap is a usb allocated as sdd1. I administer with webmin. Recently my sda HD gave up the ghost and I was forced to install a new one. I installed Ubuntu server 9.10 onto the new HD. I have give my user account read write permission on media/sdc1/ so that Apache can access the web pages. All seems to be Ok and my web pages (7 running as virtual hosts) are listed in the Apache2 sites enabled folder.

The problem is when I connect to my server only the var/www is being shown on the internet? There seems to be something missing between my var/www and Apache2 sites-enabled connection?

My test web site is

I am sure it is only something minor that I have forgotten.

Any help and comments would be highly appreciated

Thanks in advance
Old 08-13-2009, 04:46 AM   #2
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
The default webroot for apache is /var/www/html, but configuration settings are usually stored in /etc/httpd/ in various files. Your /etc directory was on your corrupted disk, and the re-installed system certainly has only the default configuration. You will have to add all your virtual host settings again.


Last edited by jeromeNP7; 09-04-2009 at 08:52 PM.
Old 08-13-2009, 05:12 AM   #3
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

OP stated that he used Apache2 so config files are not in /etc/httpd but in /etc/apache2 if default install.

Kind regards,

Old 08-14-2009, 09:56 PM   #4
LQ Newbie
Registered: Aug 2009
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Talking Solved

I made a sim link from var/www to sdc1 and ensured chmod and chown were the same on both ends


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP client can't access files in /var/www/html (Apache ) dshap Linux - Newbie 8 06-03-2009 12:12 PM
Changing user and group for Apache 2 & /var/www RDReavis Debian 4 04-06-2009 04:32 AM
apache 1.3 + mod-php4 = empty /var/www Grey Mouser Debian 4 07-28-2006 07:07 PM
apache 403 for dir in /var/www/html/ m3rajk Linux - Networking 7 10-11-2005 01:31 PM
Debian 3.1 sarge, Apache and /var/www/images directory fiddelm3742 Linux - Software 7 06-30-2005 11:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration