LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems installing Apache 2.2.6 (https://www.linuxquestions.org/questions/linux-software-2/problems-installing-apache-2-2-6-a-605207/)

Sysop1911 12-07-2007 10:59 AM

Problems installing Apache 2.2.6
 
I am brand new to Linux. I am trying to install Apache 2.2.6 on a Red Hat Enterprise Linux (RHEL) 4 machine. The machine currently has Apache 2.0.52-9.ent on it. I don't have a key with this machine (since it's a test box), so I can't do the up2date command. I downloaded the source files and did a ./configure, then 'make', then a 'make install' and it seemed to work. However, when I try to restart Apache, I get the following message:

--------------------------------------------------------------------
Starting httpd:
Apache 1.3 configuration directives found
please read /usr/share/doc/httpd-2.0.52/migration.html
[FAILED]

--------------------------------------------------------------------

I read somewhere that this could be the result of the httpd.init file pointing to the wrong Apache install, but I don't have an httpd.init file. If no one knows the answer to this, can someone tell me how to completely delete whatever Apache installs I have (can't just do "rpm -e httpd" because it says other things depend on it) and install Apache 2.2.6 from scratch? Thanks.

Sysop1911

Sysop1911 12-07-2007 11:01 AM

I accidentally put this in the wrong forum, maybe an admin can move it to Server or Newbie? Thanks.

win32sux 12-07-2007 11:27 AM

Moved to Software.

forrestt 12-07-2007 12:13 PM

It sounds like your httpd.conf file is the wrong version. Find where it is located (I'm guessing in /etc/httpd/conf), back it up, and replace it w/ the one from the source distribution. If this allows you to start Apache (or gives a different error), then you can configure it to match your old configuration.

HTH

Forrest

forrestt 12-07-2007 12:24 PM

It may also be that your apache startup script isn't the correct one. That may be a better thing to look to update.

Forrest

Sysop1911 12-07-2007 02:29 PM

Thanks for your help, forrestt. I got Apache started because of your help, but now the problem is it's still version 2.0.52-9. This is probably because the httpd.conf file from the source distribution (for version 2.2.6) was basically a blank template. I was able to fill in most of the information, but the LoadModule lines I had to copy from the old httpd.conf file. If you were upgrading from 2.0.52-9 to version 2.2.6, can you kind of walk me through the steps you'd take, starting from where you'd download the source distribution? Like I said in my first post, I am pretty new to the Linux world and can barely even open a window in Linux. Thanks.

Sysop1911

forrestt 12-07-2007 02:39 PM

This Page should show you how to convert a 2.0.x install into a 2.2.x install. I would also try to uninstall the old version if I wasn't using it. I know you said there were some dependencies preventing you from performing an "rpm -e httpd". What were the dependencies, and do you really need those as well?

HTH

Forrest


All times are GMT -5. The time now is 04:34 PM.