LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2010, 12:31 AM   #1
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
Question PHP manual configuration VS yum


Dear all,

Currently I'm building a new box using CentOS 5.4. As most of you already know, CentOS 5.4 comes with PHP 5.16 and I want to upgrade to 5.26. (I already know how to do that using yum)

What makes me wonder is http://php.net/ only provide it's source code. So my question is:
  1. what's the benefit and/or lost of using source code + self compile than using the RPM files?
  2. If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
  3. How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
  4. If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?

Thanks for your trouble answering my questions.

Regards,

YoChan
 
Old 04-07-2010, 02:11 AM   #2
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
Quote:
Originally Posted by yoachan View Post
Dear all,
  1. what's the benefit and/or lost of using source code + self compile than using the RPM files?
  2. If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
  3. How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
  4. If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?
With source code you are in complete control over the version, patches, dependencies, and destination of the files installed. With RPM the builder has already dictated all of this for your distribution. You can use the RPM to remove the package (because it knows where it put the files) With source code, only you know where you told it to put the files, so you have to go in there and take them out yourself.

For the same reason, you can easily update RPMs, but you would have to start from scratch with source code. Lots of problems are caused by having two versions of the same software accessible at the same time. (Specially php)
 
Old 04-07-2010, 03:29 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
PHP version 5.2.6 : 158 packages, Fedora 10 : Lots of SRC RPMS
available for rpm rebuild, for the most extras.
php526 http://www.linuxquestions.org/questi...-5-2-a-791943/
Post # 4 , etc.

LQ info : http://www.linuxquestions.org/questions/search.php
>>> 'Tag Name' = php5 :
Your questions 1....4, may already have been answered in one
of the other threads ?
.....
 
Old 04-07-2010, 08:22 AM   #4
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
@bakdong: Thanks for the answers. I think it covers everything
I'll write everything down again, and CMIIW
Q:
Quote:
Originally Posted by yoachan View Post
what's the benefit and/or lost of using source code + self compile than using the RPM files?
A:
Quote:
Originally Posted by bakdong View Post
With source code you are in complete control over the version, patches, dependencies, and destination of the files installed. With RPM the builder has already dictated all of this for your distribution.
Q:
Quote:
Originally Posted by yoachan View Post
If I use RPM files, any time when needed I can easily add PHP modules by installing separate rpm files (e.g. php-mysql, php-xml, etc). Can I do this with the source code pack, or do I have to reconfigure and recompile everything from scratch?
A:
Quote:
Originally Posted by bakdong View Post
For the same reason, you can easily update RPMs, but you would have to start from scratch with source code.
Q:
Quote:
Originally Posted by yoachan View Post
How can I uninstall PHP that was created using source code + self compile? (I think "rpm -e" won't work here...)
A:
Quote:
Originally Posted by bakdong View Post
You can use the RPM to remove the package (because it knows where it put the files) With source code, only you know where you told it to put the files, so you have to go in there and take them out yourself.
Q:
Quote:
Originally Posted by yoachan View Post
If I use the source code + self compile, and someday I want to upgrade to the latest PHP at that time, should I firstly remove my previous compiled PHP, or I can just configure and compile the latest PHP (with a hope that it'll overwrite previous PHP)?
A:
Quote:
Originally Posted by bakdong View Post
Lots of problems are caused by having two versions of the same software accessible at the same time. (Specially php)
@knudfl: I've tried to search before posting. But still can't find what I'm looking for. But I'll be more careful next time
 
  


Reply

Tags
php5



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
Manual GRUB configuration for FC5 BobNutfield Fedora 5 03-28-2006 12:56 AM
QMAIL manual configuration macie Linux - Software 2 06-27-2004 01:57 PM
Manual configuration of two nics Stuartb21 Slackware 2 02-28-2004 07:35 AM
SuSE Kinternet - manual configuration? iantic Linux - Distributions 5 10-07-2003 08:54 PM
Network configuration DHCP/manual pe2338 Linux - Networking 1 08-14-2003 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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