Linux / UNIX Tech Support Forum
This is a discussion on Redhat upgrade php within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I need latest php version on redhat 5 server. How can I upgrade php on rhel 5 server using command ...
Register free or login to your account to remove all advertisements.
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
Not possible. Redhat runs and patch only stable php version that was first shipped with v5.0. You may compile latest PHP5 and install everything. The following is from my internal wiki and tested on CentOS and RHEL 64 bit v5.4:
Grab php latest tar bar from php.net: Code:
wget php.net/get/php-5.2.11.tar.bz2/from/us.php.net/mirror Code:
tar -jxvf php-5.2.11.tar.bz2 cd php-5.2.11 Code:
./configure --with-libdir=lib64 --with-gd --with-mysql --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-fastcgi --enable-force-cgi-redirect --with-openssl Code:
make Code:
rpm -qa | grep php rpm -e php rpm -e php-module-names Code:
make install Code:
php -v
__________________
Vivek Gite Last edited by nixcraft; 30th September 2009 at 05:06 PM. Reason: typo |
|
|||
|
Another option is use SRPM from Red Hat Web Application Stack, the version is much closer to latest upstream release than the one shipped with RHEL.
Code:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHWAS/SRPMS/ Personally I prefer RPM packaged application for my servers. |
![]() |
|
|
| Tags |
| centos install php 5.2.11, linux, php, redhat, redhat install php 5.2.11, rhel 5 php, rhel install php 5.2.11, rpm, yum |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| advice to upgrade to NFS4 | samengr | File Servers | 0 | 5th March 2009 05:23 PM |
| best way to upgrade glibc? | samengr | CentOS / RHEL / Fedora | 4 | 18th February 2009 04:01 PM |
| DNS broken after Fedora 10 upgrade | woodson2 | CentOS / RHEL / Fedora | 0 | 3rd December 2008 08:06 PM |
| DNS broken after Fedora 10 upgrade | woodson2 | Domain Name Server | 0 | 3rd December 2008 08:05 PM |
| How To Upgrade PHP | sweta | Ubuntu / Debian | 0 | 2nd May 2008 11:18 PM |