+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    38
    Points
    2,833
    Level
    22

    Post INSTRUCTIONS: Upgrade to PHP 5.3.2 Stable - CentOS and RedHat

    Hello Everyone,

    I have searched far and near for a simple solution for CentOS and RedHat to install or update php and its binaries to the latest 5.3.2 and ioncube. So I decided to make a guide for it here in just a few simple steps.

    Installing or Upgrading PHP 5.3.2

    1) SSH into your box as root

    2) Ensure your in your /root directory.
    Code:
    cd /root
    3) Lets add the Webtatic repo to YUM
    Code:
    rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname  -i`/webtatic-release-5-0.noarch.rpm
    4) We have two options here:
    Install:
    Code:
    yum --enablerepo=webtatic install php
    or Update:
    Code:
    yum --enablerepo=webtatic update    php
    (If this does not work please try to disable regular repo's by adding the --disablerepo=* flag before the --enablerepo=webtatic flag)

    Installing or Upgrading Ioncube 5.3

    1) Go to http://www.ioncube.com/loaders.php and download the latest version for your OS. (I prefer zip format)
    Right Click the URL, Copy, and paste like so:
    Code:
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip

    (The example url is the latest 64 bit version, at the time of this post)


    2) Untar the file or unzip it:
    Untar:
    Code:
    tar xvfz ioncubeX.X.tar.gz
    or Unzip:
    Code:
    unzip  ioncubeX.X.tar.gz
    3) Go into the ioncube directory you just unpacked:
    Code:
    cd ioncube
    4) Move the ioncube php extension to the php extensions directory.
    Code:
    cp ioncube_loader_lin_5.3.so /usr/lib64/php/modules/ioncube_loader_lin_5.1.so

    (This is the correct directory on most 64 bit systems. If this is incorrect run 'ls -lai /usr' and check to see where it is.)


    5) Now you need to create a new file and insert the following code into it:
    Create/open the file:
    Code:
    nano /etc/php.d/ioncube.ini
    Insert this code:
    Code:
    ; Enable ioncube extension module
    zend_extension =  /usr/lib64/php/modules/ioncube_loader_lin_5.1.so
    That's it!

    Restart or Gracefully Restart Apache via Interworx, and your all set! This has been verified on both x86-32 bit and x86-64 bit CentOS 5.4 installs.
    Last edited by anthonycl; 05-06-2010 at 12:11 AM.
    Vice President of Clik Labs
    http://www.cliklabs.com/ - @ClikLabs
    Proud User and Reseller of Interworx

  2. #2
    Join Date
    Sep 2007
    Location
    Greensboro, NC
    Posts
    32
    Points
    3,085
    Level
    23
    thanks! works great.. now installs 5.3.13.

    -Marc
    ---
    Marc Pope
    Falcon Internet
    http://www.falconinternet.net/

  3. #3
    Join Date
    Jun 2008
    Posts
    21
    Points
    2,354
    Level
    20
    Great How-to!

    Just a little correction

    Since we are upgrading to php 5.3 we need the ioncube 5.3 extension and not the 5.1
    Code:
    ; Enable ioncube extension module
    zend_extension =  /usr/lib64/php/modules/ioncube_loader_lin_5.1.so
    Should be

    Code:
    ; Enable ioncube extension module
    zend_extension =  /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
    Cheers!

  4. #4
    Join Date
    Mar 2010
    Posts
    6
    Points
    1,184
    Level
    13
    For x86-32 bit should be

    ; Enable ioncube extension module
    zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so


    Quote Originally Posted by Nicarlo View Post
    Great How-to!

    Just a little correction

    Since we are upgrading to php 5.3 we need the ioncube 5.3 extension and not the 5.1
    Code:
    ; Enable ioncube extension module
    zend_extension =  /usr/lib64/php/modules/ioncube_loader_lin_5.1.so
    Should be

    Code:
    ; Enable ioncube extension module
    zend_extension =  /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
    Cheers!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts