LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-06-2013, 03:15 PM   #1
sumithar
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Rep: Reputation: 0
Install Apache HTTPD on RedHat Linux


I am trying to install the apache http server on a redhat 64 bit install that's running on VMWARE.
Apache doesn't provide an rpm.but they say I can convert the source tarball to an rpm using this command
rpmbuild -ts httpd-2.4.x.tar.bz2
From the apache website I downloaded httpd-2.4.3.tar.bz2

when I try the command above I get rpmbuild command not found.

So I try to install rpmbuild package. In the Applications->Add/Remove Software i search on rpmbuild and don't find anything.

I typed in yum install rpmbuild

and initially got
bash-3.2# yum install rpmbuild
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package rpmbuild available.
Nothing to do

Then I went online and found a sample yum.conf file and replaced the one that I had in /etc and tried the same command and got these messages
http://ayo.freshrpms.net/fedora/linu...ta/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: core. Please verify its path and try again

I have a certain familiarity with Ubuntu, this is my first adventure with RedHat- and was forced on me due to an online course I am doing.

I'd surely appreciate any help.

Thanks!
 
Old 02-06-2013, 03:42 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm not a Redhat user anymore, but IIRC Redhat provides an Apache httpd RPM - if you didn't install it with your initial install, you can install it with rpm -Uvh httpd-<version>.<arch>.rpm (depending on the version and your architecture).

Of course it's possible that Redhat has changed a lot since I was a regular user...
 
Old 02-06-2013, 03:51 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What is yum and how do I use it?
 
Old 02-06-2013, 04:20 PM   #4
sumithar
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hi,
I managed to locate httpd-2.4.3-15.fc19.x86_64.rpm online by a google search and tried to install it using that command (also by opening with package manager)
I get a list of failed dependencies.

Missing Dependency: liblua-5.1.so()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libexpat.so.1()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: systemd-units is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libsystemd-daemon.so.0()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libapr-1.so.0()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libdb-5.3.so()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libc.so.6(GLIBC_2.14)(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: httpd-tools = 2.4.3-15.fc19 is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libaprutil-1.so.0()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)
Missing Dependency: libpcre.so.1()(64bit) is needed by package httpd-2.4.3-15.fc19.x86_64 (/httpd-2.4.3-15.fc19.x86_64)


Shouldn't the install process take care of installing dependent packages too?

I did come across the What's Yum site earlier and that's how I figured out enough to run the yum commands that didn't work.

Thanks
 
Old 02-06-2013, 06:36 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1.
Code:
This system is not registered with RHN.
You need to register this system with RH so you can use yum correctly AND keep your system updated.


2. Alternately:

a) create a local repo from the Install media and use that instead
https://code.google.com/p/iredmail/w...Yum_Repository

b) convert to Centos instead, which is a free rebuild of RHEL

3. That last you mentioned is for Fedora 19 '.fc19.'. Don't even think of trying to use it on this OS
 
Old 02-07-2013, 08:42 AM   #6
sumithar
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Original Poster
Rep: Reputation: 0
First things first, I'm having to use a VMware image that is provided to me by this online course I'm taking that has the relevant s/w pre-installed in it. I can't follow along with the course unless I use it. it also means that I don't have the original install CD/DVD.
The course instructions seem to assume I've httpd in place and I have posted on their forum explaining my problem and haven't heard back.

I thought I'd try and install apache while I wait for a response.

Unfortunately, So I don't have the flexibility of using Centos, much as I'd like to.

I tried to run the rhn_register command. I get a message requiring me to buy a subscription (or unentitle an unused one). I don't really want to buy anything to complete what is supposed to be a free online course!

I found that rpm at this site
rpmfind.net/linux/rpm2html/search.php?query=httpd

Wasn't sure which to pick for my OS, just picked the first!

Looks like I'm SOL at this point unless the course organizers come back with some suggestions?

Thanks!
 
Old 02-07-2013, 09:17 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I am a little bit surprised that an online course is providing unregistered copies of Red Hat VMware images. Would you be so kind to provide a link to that onli9ne course, I would like to have a look at that.
 
Old 02-07-2013, 10:16 AM   #8
sumithar
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Sure...
The site is
http://bigdatauniversity.com/

I signed up for the course Hadoop Fundamentals.

you can click on courses in the main page and then under Big Data, Hadoop Fundamentals. You need a userid/pwd to actuall sign up tho.

Once you do and actually are on the course's web page, choose option 4 "Download and use the supplied VMWARE image".

My VMWARE session does say "non-commercial use only" in the title bar- don't know if that makes a difference.

Thanks for willing to try this out.
Regards
 
Old 02-07-2013, 11:10 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I couldn't download the image parts, getting a not found on server message. Will try again later.
 
  


Reply



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
[SOLVED] Change of Apache httpd.conf doesn't work on CentOS/RedHat? photonxp Linux - Server 1 07-01-2010 12:12 AM
need Default Apache 2.2.3 httpd.conf in Redhat 5.3 please ackman Linux - Enterprise 7 09-11-2009 04:47 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM

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

All times are GMT -5. The time now is 03: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