LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Loading Apache - help (https://www.linuxquestions.org/questions/linux-newbie-8/loading-apache-help-863517/)

PhilR60 02-18-2011 06:50 AM

Loading Apache - help
 
I just loaded my first RHEL 6 server running at init 3.

This is a test box I want to load Nagios on.

Nagios requires:
Apache
PHP
GCC Compiler
GD Development Libraries

I can't use yum yet because I won't consider registering this until I test Nagios.

Using rpm has been a chore...seems like everything I try to load has some dependency. The funniest one was when I ran:

rpm -ivh httpd-2.2.15-5.el6.x86_64.rpm

and it said I needed the following dependencies:

apr-util-ldap is needed by httpd-2.2.15-5.el6.x86_64
httpd-tools = 2.2.15-5.el6 is needed by httpd-2.2.15-5.el6.x86_64
libapr-1.so.0()(64bit) is needed by httpd-2.2.15-5.el6.x86_64
libaprutil-1.so.0()(64bit) is needed by httpd-2.2.15-5.el6.x86_64

When I ran:

rmp -ivh apr-util-ldap-1.3.9-3.el6.x86_64.rpm

It said I needed apr-util-1.3.9-3.el6.x86_64.rpm

When I tried to load that package, it said the dependency was:

rpm -ivh apr-util-1.3.9-3.el6.x86_64.rpm
warning: apr-util-1.3.9-3.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libapr-1.so.0()(64bit) is needed by apr-util-1.3.9-3.el6.x86_64

I do an ls libap* in the Packages folder on the CD-ROM and there is no file.

A friend told me to try:

rpm -ivh --aid apr-util-1.3.9-3.el6.x86_64.rpm

But I get the same results. I can't find this in the RHEL 6 book either.

Can anyone tell me what I'm doing wrong or what I have to do to get this moving?

Thanks,
Phil

acid_kewpie 02-18-2011 07:14 AM

Quote:

libapr-1.so.0()(64bit) is needed by apr-util-1.3.9-3.el6.x86_64
this is saying it needs a *FILE* and not a *PACKAGE*. Compare this with the httpd-tools *PACKAGE* dependency above. This is a different kind of dependency, and so you need to find out what package contains that file. the answer is just "apr", which is on your install media.

PhilR60 02-18-2011 08:11 PM

Does anyone know the packages to run, using rpm, to get these installed:

Apache
PHP
GCC Compiler
GD Development Libraries

NM04 02-19-2011 12:27 AM

Code:

you can use "rpm -ivh package", for more info check "man rpm".

acid_kewpie 02-19-2011 01:49 AM

Quote:

Originally Posted by PhilR60 (Post 4263402)
Does anyone know the packages to run, using rpm, to get these installed:

Apache
PHP
GCC Compiler
GD Development Libraries

Not really, as it depends what you have installed already. Can you not just get a 30 day rhn trial if you don't want to register?

PhilR60 02-19-2011 06:53 AM

I always check the man pages before posting a question on here. I will not let this beat me and will eventually get it going.

I do not understand why they will not let me use yum for the 30 days after installing this, but they said I would either have to un-register one of my production servers and add this one. I will not do that, of course.

As far as what was loaded, that's easy, I loaded RHEL 6 from the iso in VMware and took the "Basic Server" build and only added the machine name and IP settings.

It should not be this difficult though, people...I realize Windoze is much simpler in a lot of ways, but Linux should not be this difficult either...just my two cents.

acid_kewpie 02-19-2011 09:14 AM

It is difficult because you are making it difficult for yourself. Any troubles you're asking about here are your own making. Uu are not supposed to use rhel without an rhn subscription. If you don't want a subscription them use centos instead. Otherwise subscribe, possibly a free trial, to rhn. Either way, uu should be installing stuff with yum. Moreover, everything you need is on you distro media, so there is no need to download anything. Actually, have you tried using the add/remove upload in the system menu? I think that will initially reference your dvd's to install the server package groups you could have chosen at install time.

PhilR60 02-20-2011 06:50 AM

How am I making it difficult for myself, Chris? I downloaded the iso from their site, loaded it, it errors out when trying to run init 5, but Linux gained its popularity (from what I've read) from doing everything from the command line, right (not to mention how rock-solid it is!)?

So I should be able to do everything from there anyway, correct? I have several RHEL's in my production environment that I am paying for via RHN. I loaded this one to get Nagios running for a possible alternative to paid monitoring software, so why pay for something I'm just testing? If I like what I see, I will register it. The problem has not been with Nagios, I haven't even gotten there yet, it's all the dependencies for software that Nagios says must be installed (Apache, PHP, GCC, and GD Development Libraries). Through about 20 hours of reading and experimenting, I've been able to get the first three loaded and I might have downloaded something last night that will load the last requirement...we'll see (it says httpd is running, but I can't get to my default website yet...I think it is a firewall issue, but I haven't fixed that yet).

I disagree with your statement about not using RHEL without a subscription because they offer it as trial software, but when you load it, they do not want you to update it or load software unless you buy the subscription? How is that true trial software? I can download and update with other vendor's software (like SUSE and Windows).

Also, you said, "Moreover, everything you need is on you distro media, so there is no need to download anything. Actually, have you tried using the add/remove upload in the system menu?" Well, I have not been able to find the dependencies for the GD development libraries, but I did find a site stating this is not on the DVD and it offers the rpm's for many different vendor's software distributions, so I think I found what I need there. As I stated above, RHEL 6 won't run at init 5, so I can't do the add/remove in any menu...I found this:

http://forums.virtualbox.org/viewtopic.php?f=3&t=35551
But I'm not running beta, so I'll keep looking...

My point was nothing more than I do not believe it should be this difficult...maybe it's just me. I'm not trying to ruffle feathers or upset anyone...just stating how I feel about it.


All times are GMT -5. The time now is 11:50 AM.