Linux - SoftwareThis 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.
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.
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?
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.