LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-27-2015, 08:50 AM   #1
tejama
Member
 
Registered: Aug 2007
Posts: 37

Rep: Reputation: 15
Apache 2.4 on RHEL6


We needed to install Apache 2.4 on our RHEL 6 web servers due to the need for 'mod_ssl'. It appears as though when I ran the yum command to install 2.4 it didn't upgrading the existing 2.2 version, but rather installed 2.4 to run simultaneously with 2.2 (which I understand is due to the focus on providing stable apps instead of the newest versions).

The issue we're having is that to start Apache 2.4 we need to run 'service httpd24-httpd start'. Is there a way to configure 2.4 on RHEL6 so that running 'service httpd start' actually starts Apache 2.4 (we aren't using 2.2 at all).

I'm not the most advanced Linux user, so if I need to clarify anything in my problem description please let me know.

Thanks,
Tejama
 
Old 05-27-2015, 09:18 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by tejama View Post
We needed to install Apache 2.4 on our RHEL 6 web servers due to the need for 'mod_ssl'. It appears as though when I ran the yum command to install 2.4 it didn't upgrading the existing 2.2 version, but rather installed 2.4 to run simultaneously with 2.2 (which I understand is due to the focus on providing stable apps instead of the newest versions).
Can you tell us what command you ran???
Quote:
The issue we're having is that to start Apache 2.4 we need to run 'service httpd24-httpd start'. Is there a way to configure 2.4 on RHEL6 so that running 'service httpd start' actually starts Apache 2.4 (we aren't using 2.2 at all).
A bit confused here...since you're not using 2.2, why did you need to install 2.4 for the "mod_ssl"?? If you're using neither, then remove them both, and do a fresh install of the latest Apache.
Quote:
I'm not the most advanced Linux user, so if I need to clarify anything in my problem description please let me know.
You've been posting here for EIGHT YEARS now, about RHEL, and I find it hard to believe after all that time, you haven't learned anything. Also, since you're using RHEL6 that you are paying for (RIGHT???), have you contacted Red Hat support for help?
 
Old 05-27-2015, 10:09 AM   #3
tejama
Member
 
Registered: Aug 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
Can you tell us what command you ran???
To install 2.4 I ran: (we have a local repo available with the RHSCL)

Code:
yum install httpd24-httpd.x86_64
Quote:
Originally Posted by TB0ne View Post
A bit confused here...since you're not using 2.2, why did you need to install 2.4 for the "mod_ssl"?? If you're using neither, then remove them both, and do a fresh install of the latest Apache.
After reviewing my notes, the app team asked for 2.4. Forget the mod_ssl part, we are using it but the request to install mod_ssl and 2.4 came in at the same time and for some reason I remembered them as being connected. In the meantime, I just removed both 2.2 and 2.4, did a fresh install of 2.4 (with the yum command above). So I've got just the one version of Apache on the system now but to start the app I still have to run:

Code:
service httpd24-httpd start
I'm just wondering if there's a way to change it so that 'service httpd start' starts Apache. When I run 'service httpd start' as the system stands now I get an 'unrecognized service' error message.

Quote:
Originally Posted by TB0ne View Post
You've been posting here for EIGHT YEARS now, about RHEL, and I find it hard to believe after all that time, you haven't learned anything. Also, since you're using RHEL6 that you are paying for (RIGHT???), have you contacted Red Hat support for help?
8 years ago I did have to setup a couple of RHEL 4 servers in the position I was in. Since that time I've been supporting all Windows servers and now I'm just getting back into RHEL (hence the gap in my posts from 2008 to 2015). In any case, we have RH support but the question just seems trivial when it really doesn't impact the functionality.

Last edited by tejama; 05-27-2015 at 10:11 AM.
 
Old 05-27-2015, 10:43 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by tejama View Post
To install 2.4 I ran: (we have a local repo available with the RHSCL)
Code:
yum install httpd24-httpd.x86_64
Ok...so again, have you contacted Red Hat for help??? If you're paying for an RHEL subscription, you are also paying for support and assistance. They could get you the right package, and I don't think that's it. That may be one that your team has put out on the local repository.
Quote:
After reviewing my notes, the app team asked for 2.4. Forget the mod_ssl part, we are using it but the request to install mod_ssl and 2.4 came in at the same time and for some reason I remembered them as being connected. In the meantime, I just removed both 2.2 and 2.4, did a fresh install of 2.4 (with the yum command above). So I've got just the one version of Apache on the system now but to start the app I still have to run:
Code:
service httpd24-httpd start
I'm just wondering if there's a way to change it so that 'service httpd start' starts Apache. When I run 'service httpd start' as the system stands now I get an 'unrecognized service' error message.
You'll have to find out where that package came from first. There may be an "httpd24-httpd" file in /etc/init.d...if so, try renaming it to httpd.
Quote:
8 years ago I did have to setup a couple of RHEL 4 servers in the position I was in. Since that time I've been supporting all Windows servers and now I'm just getting back into RHEL (hence the gap in my posts from 2008 to 2015). In any case, we have RH support but the question just seems trivial when it really doesn't impact the functionality.
True, the question may be trivial, but you should use what you're paying for. RHEL support is there for you.
 
  


Reply

Tags
apache 2.4.2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirection not happening with Apache Reverse Proxy in RHEL6 urssandip Red Hat 2 03-11-2013 02:27 AM
Need help Urgently in installing apache.1.3.23-11.i386 on RHEL6 Arjun_Tumkur Linux - Newbie 8 03-15-2011 08:34 PM
Need help Urgently in installing apache.1.3.23-11.i386 on RHEL6 Arjun_Tumkur Linux - Enterprise 1 03-15-2011 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration