LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2003, 04:21 PM   #1
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
Apache server: pointing to the correct file


Hi,

Back a month ago, i installed Apache 1.3.28. I now re-installed apache. The problem is I'm having two httpd.conf files right now.

From the first install I have: /etc/httpd/conf/httpd.conf and
from the second install I have: /usr/local/apache/httpd/conf/httpd.conf

I want Apache to use ONLY the second installed httpd.conf file. How can I force my server to ignore the first version of httpd.conf, but use the second instead. I restarted my httpd daemon, but it still uses the first httpd.conf?

Any ideas?

Thanks,

Wim
 
Old 08-11-2003, 04:41 AM   #2
bleah-man
Member
 
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
You really needed to remove the other version before you installed this one. Can't see you're distro but if you used rpm it shouldn't be too painless.
 
Old 08-11-2003, 07:39 AM   #3
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
Yup, remove old one first!
I recon you had apache installed with rpm and then later compiled it yourself.

When you compile apache, you cannot use /etc/init.d/httpd to start and stop the server. That's because it always will use the old installation.

Do the folowing:
Code:
to find out wether you have apache rpm installed:
rpm -qa | grep http
if that gives you a line like
httpd-2.0.40-21.3
httpd-devel-2.0.40-21.3
then do
rpm -e httpd-devel-2.0.40-21.3 httpd-2.0.40-21.3
to get rid of old install...

then do
cd /etc/httpd/conf/

move old config-file
mv httpd.conf httpd.conf.backup

create softlink to new configfile
ln -s /usr/local/apache/conf/httpd.conf httpd.conf

and then go
/usr/local/apache/bin/apachectl start
that should set you up.

best regards
Klaus
 
Old 08-11-2003, 08:21 AM   #4
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Original Poster
Rep: Reputation: 15
Hi,

Here is what I did. I first installed Apache from the Linux CD. I modified the httpd.conf file a little bit and made it working. I was using Apache 1.3.28.

Then I decided to install PHP, MySQL, ModSSL, openSSL and therefore I compiled Apache 1.3.28 again.

Now, I'm afraid that when doing this uninstal procedure you explain, I have to do the setup of PHP, MySQL, Apache... all over again.

The second time I installed Apache, I used the tar.gz file.

What do you think?

Wim
 
Old 08-11-2003, 08:32 AM   #5
codecruncher
Member
 
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37

Rep: Reputation: 15
You should not have to reinstall apache. Rpm will only remove the rpm files, which most likely will be at a different location than your compiled ones.
 
  


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
How to find all symbolic links pointing to a particular file? Akhran Linux - Newbie 5 11-19-2005 07:25 AM
How to search for files that are symbolic links pointing to a particular file? Akhran Linux - Newbie 1 10-13-2005 08:32 AM
CGI File Not Executing on Apache Server kaplan71 Linux - Software 2 10-21-2004 08:12 AM
giving apache the correct permissions dflorence Linux - Newbie 3 11-06-2003 09:27 AM
Newb: Pointing my domain name to my linux server once here Linux - Networking 2 09-08-2003 05:57 PM


All times are GMT -5. The time now is 01:54 PM.

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