LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache server: pointing to the correct file (https://www.linuxquestions.org/questions/linux-software-2/apache-server-pointing-to-the-correct-file-80696/)

WiWa 08-10-2003 03:21 PM

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

bleah-man 08-11-2003 03:41 AM

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.

codecruncher 08-11-2003 06:39 AM

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

WiWa 08-11-2003 07:21 AM

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

codecruncher 08-11-2003 07:32 AM

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.