LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-13-2009, 01:49 AM   #1
bmeserver
LQ Newbie
 
Registered: Aug 2009
Posts: 2

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 http://www.alt-it.tk

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, 05:46 AM   #2
jeromeNP7
Member
 
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.

Linux

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

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

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

Kind regards,

Eric
 
Old 08-14-2009, 10:56 PM   #4
bmeserver
LQ Newbie
 
Registered: Aug 2009
Posts: 2

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
 
  


Reply


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 01:12 PM
Changing user and group for Apache 2 & /var/www RDReavis Debian 4 04-06-2009 05:32 AM
apache 1.3 + mod-php4 = empty /var/www Grey Mouser Debian 4 07-28-2006 08:07 PM
apache 403 for dir in /var/www/html/ m3rajk Linux - Networking 7 10-11-2005 02:31 PM
Debian 3.1 sarge, Apache and /var/www/images directory fiddelm3742 Linux - Software 7 06-30-2005 12:02 PM


All times are GMT -5. The time now is 05:30 AM.

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