LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-05-2003, 10:22 AM   #1
PipIWYG
LQ Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
Angry Apache Configuration Clashes


Hi,

As I'm very new to both Linux and Apache, I've somehow managed to screw everything up on my Apache configuration.

First of all, as soon as I've installed RH9 on my system, I installed Apache version 2.0.47, and managed to successfully set it up without any hassles. Except, I had an issue starting the server at boot time, as it kept on loading Apache 1.3. However, some geek helped me out, and somehow removed 1.3 and replaced it with my new 2.0.47 (apchectl) loader. (I cannot for the life of me remember what he did)

Today, I decided to do an upgrade to Apache version 2.0.48, and because I've become quite witty with my limited knowledge of Linux commands, (typing at a speed of 300 kph) I configured apache 2.0.48 with a prefix of /usr/locate/apache2 instead of /usr/local/apache2. (Guess it shows how often I try to find things with locate). Soon after I realised this, I compiled it again with the correct prefix, only to find that no matter what I do, it still loads 2.0.47, and complains about the fact that it can't find httpd.conf in /usr/locate/apache2/conf/ (because I deleted the folder when I realised that I messed it up).

How can I change it to look for httpd.conf in the correct folder, and how can I manage services properly to make it load the correct one at boot time, so that I can get rid of the old apache bagage?

PUHLEASE HELP!



- Pip

Last edited by PipIWYG; 11-05-2003 at 10:55 AM.
 
Old 11-05-2003, 04:07 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
Re: Apache Configuration Clashes

Quote:
Originally posted by PipIWYG
it still loads 2.0.47, and complains about the fact that it can't find httpd.conf in /usr/locate/apache2/conf/ (because I deleted the folder when I realised that I messed it up).
It's really strange...Could you please copy the whole message you get when you run Apache? With the full command you give.

When you type
/usr/local/apache2/bin/apachectl start
your new Apache should be started.
 
Old 11-06-2003, 09:54 AM   #3
PipIWYG
LQ Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
What I've managed to do was, when loading /usr/local/apache2/bin/apachectl, I specify where it must look for the file like so:

/usr/local/apache2/bin/apachectl -f /usr/local/apache2/conf/httpd.conf

And then it starts up fine. When I run /usr/local/apache2/bin/apachectl start, I get the following error:

httpd: could not open document config file /usr/locate/apache2/conf/httpd.conf

I've also noticed that there are two entries in my services list. One called httpd and another called httpd_1.3. If I want to stop the service, I have to stop it by calling service httpd_1.3 stop. When I try to stop it by calling service httpd stop, it tells me that it's not running.

This is why I would like some advice on managing services.

Thanx for the help.
 
Old 11-06-2003, 04:02 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
The error message you get when starting Apache without the configuration file specified means that there's still old executable used (or it was compiled with old options).

What do you mean by advice on managing services? Do you mean how to remove one of the services from the list or add a new one?
 
  


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
Managing Wi-Fi ripmaster Linux - Wireless Networking 9 06-07-2005 09:12 PM
Apache & SSL Help, Services Won't start mikeybuk Linux - Software 1 03-17-2005 06:41 AM
Start-up Managing gamehack Slackware 1 10-02-2004 08:12 AM
Apache indexing services not functioning player123496 Linux - Newbie 4 06-19-2004 03:39 PM
Managing accounts pk21 Linux - Software 0 08-09-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration