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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-03-2012, 12:42 PM   #1
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
How Best To Upgrade PHP


I am trying to install MediaWiki 1.18, and need to upgrade PHP.

I would be very appreciative if someone could provide or point me to specific instructions on upgrading PHP.

Here are the particulars.

Apache/2.2.3 (Red Hat) Server at localhost Port 80
PHP 5.1.6 (cli) (built: Nov 13 2010 16:08:24)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Red Hat Enterprise Linux Client release 5.7 (Tikanga)

Assuming PHP installs into /usr/local/bin so as not to overwrite the installed PHP, how do I get APACHE's environment to see /usr/local/bin?

Many Thanks.

Last edited by cmnorton; 01-03-2012 at 12:43 PM. Reason: grammar
 
Old 01-03-2012, 01:50 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
I'm presuming that server you are using is Ubuntu (which I don't know)
so many upgrade "guides" are available, like
- How to install PHP 5.2 on Ubuntu 10.10 (Maverick) and 11.04 (Natty)
- PHP 5.2 on Ubuntu 10.04 Lucid Lynx

or just google search

If the server is RedHat, then try asking RH for help, since you probably have a subscription to RH.
For RHEL 5 servers webtatic repo has a PHP version 5.2.17 or 5.3 if you want. It works great (as on my CentOS 5.x servers)

Anyway, the upgrade WILL replace installed version 5.1.6 with the one you will upgrade (post the server's details: "# uname -a" for easier resolving which distribution is using)

Last edited by lithos; 01-03-2012 at 01:54 PM.
 
Old 01-03-2012, 01:58 PM   #3
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Original Poster
Rep: Reputation: 35
Red Hat Usually No Help

This is on Red Hat, not Ubuntu.

Red Hat usually doesn't like out of the box solutions like this. That is, they are not inclined to support the upgrade of PHP they don't support.


Quote:
Originally Posted by lithos View Post
I'm presuming that server you are using is Ubuntu (which I don't know)
so many upgrade "guides" are available, like
- How to install PHP 5.2 on Ubuntu 10.10 (Maverick) and 11.04 (Natty)
- PHP 5.2 on Ubuntu 10.04 Lucid Lynx

or just google search

If the server is RedHat, then try asking RH for help, since you probably have a subscription to RH.
For RHEL 5 servers webtatic repo has a PHP version 5.2.17 or 5.3 if you want. It works great (as on my CentOS 5.x servers)

Anyway, the upgrade WILL replace installed version 5.1.6 with the one you will upgrade (post the server's details: "# uname -a" for easier resolving which distribution is using)
 
Old 01-03-2012, 03:48 PM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
well,

It's up to you, but MediaWiki 1.18.0 System Requirements are:
Quote:
System Requirements
MediaWiki requires PHP 5.2.3+ .....
and you're out of luck if that's not an option for you.
You can install PHP 5.3 with
Code:
#yum install php53
or better search for a guide how to install PHP 5.3 on RHEL/CentOS (which requires removing php 5.1.x or 5.2.x)

good luck
 
1 members found this post helpful.
  


Reply

Tags
mediawiki



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
Problem upgrade php to 5.2.x from 5.1.6 missin php-common fabio vinc Linux - Newbie 1 04-15-2011 04:48 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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