LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-02-2009, 10:03 AM   #1
DavidSingleton
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
Question Apache Home Directory change not registering


I went into the httpd.conf file and changed the following:

DocumentRoot "/export/prodnet/Linux Server/ProdWebRoot"

<Directory "/export/prodnet/Linux Server/ProdWebRoot">

This is where the conf file along with some threads I've read told me to change this. However, it still reads files from my var/www/html directory. I've done a search on the httpd.conf file and there is no longer a reference to the old location. I've restarted apache, but can't get this figured out.

I'm a newbie to Linux, (I've played around with Ubuntu before, but now work has me using Red Hat Server 5 (without the support package btw)).

Any help is greatly appreciated.

Thank You,
David Singleton
 
Old 01-02-2009, 10:31 AM   #2
DavidSingleton
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Progress. I managed to stumble across another httpd.conf file, perhaps one that our network admin already set up on the box. It looks like everything is loading from this file. So I'm going to make the changes necessary to that file. Anyone have any suggestions on how to clean this up so that I only have ONE apache2 installation?
 
Old 01-02-2009, 10:33 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Where did you find the other httpd.conf file? My guess from your original post was a virtual host configuration issue. What directories are these files in?

-Chad
 
Old 01-02-2009, 10:51 AM   #4
DavidSingleton
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
/etc/httpd/conf
 
Old 01-02-2009, 10:57 AM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That's only 1 file. You said you found 2.. Also, if you look at your startup script for Apache, which file is calling for the conf file?

-Chad
 
Old 01-02-2009, 11:01 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Also, this page:
http://www.linuxtopia.org/online_boo..._ch-httpd.html

Has a "warning" about modifying apache conf files by hand:
Quote:
If using the graphical HTTP Configuration Tool (system-config-httpd ), do not hand edit the Apache HTTP Server's configuration file as the HTTP Configuration Tool regenerates this file whenever it is used.
-Chad
 
Old 01-02-2009, 11:06 AM   #7
DavidSingleton
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
sorry the other file is the default location for the manual installation of apache2 that I did. /usr/local/apache2/conf/

So even though i run the start command for apache at /usr/local/apache2/conf/ it is grabbing the conf file from etc/httpd/conf/
 
Old 01-02-2009, 11:10 AM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That's the typical way of doing it. I wouldn't go as far as saying the "correct" way, but with most distributions you'll see the configuration files in /etc for system services. In this case, /etc/httpd/conf is the typical option.

-Chad
 
Old 01-02-2009, 11:14 AM   #9
DavidSingleton
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
so then can I just delete the files located in usr/local/apache2? When I go to change/add stuff later on, I'd rather not have to deal with the confusion of having it in multiple locations.
 
Old 01-02-2009, 11:28 AM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You might not want to delete them. My guess is they are the source files, and when you update apache they will be replaced anyway. The confusion will wither as you learn and understand how it works. As you deal with other services as well it will help you become more accustomed to the /etc configuration files. If you really want to delete them, I would suggest moving them first. Move them to a temp location, maybe /tmp even and then wait a few days to make sure everything continues working as expected.

Check apache and see if uses other files in that location. You can probably safely remove the conf file, but I wouldn't recommend removing the entire directory and it's contents.

-Chad

Last edited by MasterC; 01-02-2009 at 11:30 AM. Reason: Apache location
 
  


Reply

Tags
apache, httpdconf


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
Maildrop : unable to change to home directory eliufoo Linux - Server 9 07-25-2008 05:25 AM
need to link a home directory to an apache directory Melsync Linux - Server 3 09-30-2006 05:08 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Change HOME directory? bhuwan Linux - Newbie 7 01-30-2006 09:19 AM
how to change a user's Home directory n1wil Linux - General 8 08-24-2002 03:22 PM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
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