LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2003, 12:27 PM   #1
Ani
LQ Newbie
 
Registered: Oct 2002
Posts: 27

Rep: Reputation: 0
RH9 Apache/SSL/PHP/MySQL RPM vs tar.gz


I am new to Linux and have some problems understanding the differences between the different ways to install software.

As an example I want to setup Apache to use SSL, PHP, and MySQL.
I have found numerous documents on the web on how to do this in RedHat Linux.

I completed my RedHat 9 fresh install without any problems. During the install process I picked several packages including apache, mod_ssl, openssl, mysql.

I understand that I can add new packages to the system by running this command.
# rpm –ivh filename.rpm

All the documentation on how to setup Apache/SSL/PHP/MySQL say to download the source files like openssl-0.9.4.tar.gz and to extract them and then install them by ./configure, make, make install.

My first question is if I download a new program in a non-rpm format "program.tar.gz" and then I install it using make, etc. how would I be able to update it later?

With the RPMs it is very easy to do, but if I just build the program using the .tar.gz file it will not show up in the RPM database.

If I follow the directions to setup Apache/SSL/PHP/MySQL it says to run this command to install Apache with mod_ssl:
$SSL_BASE=…/openssl-0.9.4 ./configure –prefix=/usr/local/apache –active-module=src/modules/php4/libphp4.a –enable-module=php4 –enable-module=ssl.

The problem I have is that the Apache, MySQL, and openssl were all installed when RH was installed as RPMs. I no longer have the source to find "configure". How would I get Apache to recompile with MySQL, PHP, and openssl if they are already installed as RPMs?
Would I have to un-install the RPMs, then download the .tar.gz sources follow the directions on the web? Then I would not be able to update these programs using RPM.

What process should I follow for installing new software RPM or .tar.gz? If RPM then how do I recompile it later as in my Apache example?
 
Old 04-23-2003, 12:36 PM   #2
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Hi,
You've been searching too far! RH9 has what you need on the supplied CDs.
There's even a GUI to install packages from them!

Try: /usr/bin/redhat-config-packages

Go into the "Web Server" section, open it.
Select the packages you wanna install.
Click update, and follow the instructions.

Best regards,
 
Old 04-23-2003, 03:23 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: RH9 Apache/SSL/PHP/MySQL RPM vs tar.gz

Quote:
Originally posted by Ani

My first question is if I download a new program in a non-rpm format "program.tar.gz" and then I install it using make, etc. how would I be able to update it later?
You download a new version or a patch if it's provided. Then there's recompilation.
Quote:
With the RPMs it is very easy to do, but if I just build the program using the .tar.gz file it will not show up in the RPM database.
When you're installing an RPM file, your RPM database is upgraded. When you compile from source, it isn't.

Quote:
The problem I have is that the Apache, MySQL, and openssl were all installed when RH was installed as RPMs. I no longer have the source to find "configure". How would I get Apache to recompile with MySQL, PHP, and openssl if they are already installed as RPMs?
You need to decide if you'd like to use RPMs or compile from source. It's very hard to mix them. In this case, the only option is to get Apache, MySQL, PHP and openssl source and compile everyting. Or just download RPMs...
Quote:
Would I have to un-install the RPMs, then download the .tar.gz sources follow the directions on the web? Then I would not be able to update these programs using RPM.
That's true. I suggest not to uninstall RPMs, keep them. I think that RH-compiled Apache should have support for all you need build in.

Quote:
What process should I follow for installing new software RPM or .tar.gz? If RPM then how do I recompile it later as in my Apache example?
That's your decision. And your personal preference. I rather suggest RPMs. Compiling from source can sometimes be hard when problems appear (they're sometimes really ahrd to solve). But source-compiled software, with optimalization for your machine gives better performance.

Last edited by Mara; 04-23-2003 at 03:24 PM.
 
Old 04-23-2003, 04:25 PM   #4
Ani
LQ Newbie
 
Registered: Oct 2002
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for all the help.

It seems then that it comes down to personnel preference as to what to use RPMs or source code.
Both have their strong points and weakness. Thus a decision would have to be made weighing the options of both.

Please correct me, but I would then deduce that although you could have a mixed system, RPM installed software + source code installed software it would not be advisable from an administrative point of view.

Is there no way to add a program that was downloaded, compiled, installed on a system to the RPM database so that later it can be upgraded if RH releases a new version of it in RPM format??

Example: say that RH does have a RPM for software "foobar2.rpm".
This is NOT installed on the computer.
Instead a download file "foobar3.tar.gz" IS downloaded and installed (tar, configure, make, make install).

Somehow the foobar3.tar.gz is added to the RPM database as foobar3.rpm

Later RH releases foobar4.rpm.
Use rpm –U foobar4.rpm

Is this possible to do? How?
 
Old 04-25-2003, 04:42 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by Ani

Please correct me, but I would then deduce that although you could have a mixed system, RPM installed software + source code installed software it would not be advisable from an administrative point of view.

Is there no way to add a program that was downloaded, compiled, installed on a system to the RPM database so that later it can be upgraded if RH releases a new version of it in RPM format??

Example: say that RH does have a RPM for software "foobar2.rpm".
This is NOT installed on the computer.
Instead a download file "foobar3.tar.gz" IS downloaded and installed (tar, configure, make, make install).

Somehow the foobar3.tar.gz is added to the RPM database as foobar3.rpm

Later RH releases foobar4.rpm.
Use rpm –U foobar4.rpm

Is this possible to do? How?
In theory, it is possible. But if you look into the method how to build an RPM file (http://www.rpm.org/support/RPM-HOWTO.html), it's not simple and IMHO it's not worth the time.
 
Old 04-26-2003, 11:43 AM   #6
phantom0810
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Rep: Reputation: 0
To install Apache+MySQL+Php, I think it's better to use source of Apache and Php but for MySQL, rpm is OK.
Because you can do a lot of settings(options) while compiling source, like prefix, enable-<modules>.
When compile MySQL into Php just use the option "--with-mysql"

O.G.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing php-mysql RPM on RH9 stephen_e Red Hat 7 09-26-2004 10:10 AM
Apache + SSL + PHP + Mysql rjbandura Linux - Software 5 07-01-2004 01:31 PM
RPM, MySQL, PHP and Apache cossy74 Red Hat 1 03-03-2004 04:51 PM
Newbie Linux/Apache/SSL/MySQL/PHP Instalation Dilema rojow Linux - Software 12 10-24-2003 05:48 AM
Apache Jail with SSL, PHP and MySQL dai Linux - Security 3 07-05-2003 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 AM.

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