LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-20-2011, 01:56 PM   #1
falconite
Member
 
Registered: Jul 2010
Posts: 42
Blog Entries: 1

Rep: Reputation: 16
To upgrade PHP to 5.0.


Hi All,

I have 2 queries to ask. My customer wants me to upgrade current PHP to 5.0.
We currently have the below php version installed in the machine. There is a tar file that can be used to upgrade this php from. I guess yum cannot be used in my network.

So, my question is, should I just be unzipping and installing this tar file on the system to upgrade this PHP, or should I install any other files/modules along-with this tar file?

Also, how do we come to know if there are any security updates, etc. that should be done to the apache and Linux?

Tar file: php-5.1.4.tar.gz


rpm -qa | grep php
php-mysql-4.3.9-3.9.i386
php-4.3.9-3.9.i386
php-pear-4.3.9-3.9.i386
 
Old 03-20-2011, 02:10 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
1 - You cannot upgrade php just "untarring" the archive since you have to move the content in the right place too.
The risk is to overwrite the php.ini and also to have conflicts with your apache configuration.

2 - Most distributions has their own webpages with the informations you're searching for.
First check your distro updates on its website, then check security updates for apache and php.

Which distro are you using?
Why customer ask for upgrade?
If you're talking about "yum" and rpms I suppose you have a RHEL or Fedora or Centos or some derivate one. Right?
 
Old 03-20-2011, 02:27 PM   #3
falconite
Member
 
Registered: Jul 2010
Posts: 42

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Hi Slackyman!!!

Thanks for the reply.

1 - we just not untar the file, but also install it using rpm after untarring. I was referring to this.

2 - First check your distro updates on its website, then check security updates for apache and php.
1. I do not understand the first half of this statement.
2. My question on this was, how do we check the security updates for apache and Linux.

How do we check the distro?
Also, I am not sure why the customer is asking. But, we are supposed to do what the customer asks us to. Hence, I post these queries to know how to proceed with this, as I do not wanna goof up on this.

We cannot use yum. So, we can only install it thru rmpm.
 
Old 03-20-2011, 04:37 PM   #4
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
Quote:
How do we check the distro ?
cat /etc/redhat-release : A guess ... RHEL4 ? (or CentOS4.)

The Remi repo has php5 for RHEL4
http://rpms.famillecollet.com/enterp...i386/repoview/
http://rpms.famillecollet.com/enterp...ges.group.html
http://rpms.famillecollet.com/enterp...ses.group.html

And the Jasonlitka repo has it too http://www.jasonlitka.com/media/EL4/i386/

..
 
Old 03-20-2011, 04:47 PM   #5
falconite
Member
 
Registered: Jul 2010
Posts: 42

Original Poster
Blog Entries: 1

Rep: Reputation: 16
k...i got it...Its a RHEL 5
 
Old 03-20-2011, 05:20 PM   #6
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-4.3.9-3.9.i386' is an el3 or el4 package.

But may be the "alien" packages have been used for compatibility
with an ancient application ?

If you are quite sure it is EL5, then just ask Redhat for some
packages / updates.

..
 
Old 03-20-2011, 10:32 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Please ONLY post in one place
this thread is a dup of this one -- BUT with different replays

so PLEASE ONLY post the same question IN ONLY ONE PLACE !!!
http://www.linuxquestions.org/questi...-5-0-a-869835/
 
Old 03-27-2011, 09:55 AM   #8
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Why can't you use yum to update this? If this is in fact RHEL 5 or CentOS 5 then PHP 5 is in the repositories and the easiest and safest way to do this update would be yum install php. You also make no mention of what is in that tar archive, for all we know it could be a set of source files, or an rpm. That will make a difference in how to proceed, if you have source it will need to be compiled first.

It seems like you don't really have enough information to do this. Doing something just because a customer wants you to isn't a real good reason. If you know why they want/need the upgrade then you can proceed with a plan, and having a full picture of what is currently using PHP and what is needing a different version of PHP.
 
  


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
Upgrade from PHP Version 4.3.9 to PHP 5.2 on CentOS nuttynibbles Linux - Software 10 06-15-2010 02:35 PM
Upgrade PHP 5.1.6 to PHP 5.2.6 in Fedora core 6 sushant_d84 Linux - Newbie 3 07-16-2008 01:08 PM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM
Upgrade PHP objorkum Slackware 5 03-25-2005 01:14 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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