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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-10-2003, 03:21 PM
|
#1
|
Member
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82
Rep:
|
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
|
|
|
08-11-2003, 03:41 AM
|
#2
|
Member
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58
Rep:
|
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.
|
|
|
08-11-2003, 06:39 AM
|
#3
|
Member
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37
Rep:
|
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
|
|
|
08-11-2003, 07:21 AM
|
#4
|
Member
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82
Original Poster
Rep:
|
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
|
|
|
08-11-2003, 07:32 AM
|
#5
|
Member
Registered: Aug 2003
Location: Austria
Distribution: Fedora Core release 2 (Tettnang)
Posts: 37
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|