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 |
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.
|
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: best regards Klaus |
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 |
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 04:35 PM. |