I recently needed to install Zend Optimizer which was required by a ZenCart addon using Zend Guard. Zend Guard encrypts some or all of a PHP application to help protect its contents from being copied or modified. So I was typically like to install everything on CentOS using the yum package manger to make sure that updates for all applications are uniform and easy to do.

The actual package that needs to be installed to install Zend Optimizer is called php-zend-optimizer and isn’t readily available in many yum repositories. On a typical CentOS installation I add a couple extra yum repos including rpmforge and a repo that provides ruby based packages for CentOS. Anyhow after awhile of searching I finally located the atomic repository which did include the php-zend-optimizer package.

Install Atomic Repository On a CentOS Server:

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

The above command will download the atomic.sh script and then execute it. First the script installs the Atomic GPG key. Unless you have a Plesk server that you want packages for you can answer “n” when asked if you want to enable the Plesk yum repository. After this it will install the atomic.repo file in /etc/yum.repos.d/ directory. Its contents are located below.

Contents: atomic.repo

# Name: Atomic Rocket Turtle RPM Repository for CentOS / Red Hat Enterprise Linux 5 -
# URL: http://www.atomicrocketturtle.com/
[atomic]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com
mirrorlist = http://www.atomicorp.com/mirrorlist/atomic/centos-5-$basearch
#mirrorlist = http://www.atomicorp.com/channels/atomic/centos/5/mirrors-atomic
enabled = 1
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck = 1

# Almost Stable, release candidates for [atomic]
[atomic-testing]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Testing)
mirrorlist = http://www.atomicorp.com/mirrorlist/atomic-testing/centos-5-$basearch
enabled = 0
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck = 1

# Untested, Unstable, known buggy, and incomplete packages.
#[atomic-bleeding]
#name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Bleeding)
#baseurl = http://www.atomicorp.com/channels/atomic-bleeding/centos/5/$basearch/
#enabled = 0
#priority = 1
#protect = 0
#gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
#gpgcheck = 1

By default only the atmoic yum repository is installed however you can also enable the atomic-testing repository and atomic-bleeding repository. Once installed issued the below command to install php-zend-optimizer.

yum install php-zend-optimizer

Now that Zend Optimizer is installed you can run PHP applications protected by Zend Guard. The Zend Optimizer package is now easily managed with the yum package manager.


List Price: $54.99 USD
New From: $8.49 USD In Stock
Used from: $19.93 USD In Stock


List Price: $42.99 USD
New From: $17.34 USD In Stock
Used from: $3.00 USD In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , , , ,
21 Responses to “Linux CentOS 5 Server: YUM Repository to Install Zend Optimizer”
  1. CV says:

    I’m unable to configure yum automatically because the version of Linux install is 3. Can you tell me how to install manually?

    [Reply]

    alex Reply:

    Hello CV,

    Not sure I fully understand the question… are you looking to install Zend Optimizer automatically? If so write the question in more detail on our Engage site located here.

    Thanks.
    alex

    [Reply]

  2. Adam says:

    Great, worked perfectly.

    [Reply]

    alex Reply:

    Hello Adam,

    Good to hear that the article assisted you in installing the Zend Optimizer packages via yum on CentOS. Thanks a bunch for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  3. Gwyneth Llewelyn says:

    Hmm, as of February 28, 2010, atomic says that the package php-zend-optimizer is not available any longer… I wonder why not?

    [Reply]

    alex Reply:

    Hello Gwyneth,

    The php-zend-optimizer package still appears to be in the atomic repository.

    ##############################
    [root@dev ~]# yum list *ZEND*
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * rpmforge: fr2.rpmfind.net
    * atomic: www2.atomicorp.com
    * base: mirror.raystedman.net
    * updates: mirror.ubiquityservers.com
    * addons: centos.mbni.med.umich.edu
    * extras: mirrors.serveraxis.net
    Available Packages
    php-zend-optimizer.i386 1:3.3.9-1.el5.art atomic
    [root@ali ~]#
    ########################################

    Maybe there is another issue with the installation of the repo?

    Thanks.
    alex

    [Reply]

    Gwyneth Llewelyn Reply:

    Possibly! This is what I get:

    # yum list *ZEND*
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: http://www.ontime1405.com
    * atomic: www4.atomicorp.com
    * base: mirror.cogentco.com
    * extras: mirror.raystedman.net
    * updates: http://www.gtlib.gatech.edu
    addons | 951 B 00:00
    atomic | 1.9 kB 00:00
    base | 2.1 kB 00:00
    extras | 2.1 kB 00:00
    updates | 1.9 kB 00:00
    Excluding Packages in global exclude list
    Finished
    Error: No matching Packages to list

    I wonder if’s because this install of Cent OS 5 is x86_64 rather than i386?

    [Reply]

    alex Reply:

    Hello Gwyneth,

    I would almost guarantee that is the issue. Someone has ported the Zend Optimizer for 32-Bit and not for 64-Bit. You might try to contact the repo maintainer to see if they can get someone to port Zend Optimizer for 64-Bit as well.

    If you find a solution let us know.

    Thanks.
    alex

    [Reply]

    Ted Reply:

    Thanks for sharing this valuable info. :)

    However, I’m running CentOS 5.5 x86-64. Is this topic to say I can’t install Zend, or are there other options?

    [Reply]

    alex Reply:

    Hello Ted,

    I looked over the Atomic repo for CentOS 64 bit and it appears there are Zend RPM’s for 64-bit as well so you should be fine. Just follow the instructions above and you can see what Zend packages are available by issuing the following command after you install the Atomic repo.

    “yum list *ZEND*”

    Thanks.
    alex

  4. Duy says:

    Hi,

    Thanks for this tutorial. I got Zend Optimizer installed finally.

    BTW, do you know how to enable it or the installation location of Zend? I need this to enable it in my php.ini file.

    Thanks.

    [Reply]

    alex Reply:

    Hello Duy,

    No problem. Thank you for taking the time to leave feedback.

    It should be something like the below path.

    zend_extension = /usr/sbin/ioncube_loader_lin_5.2.so

    If that is not specifically the path of the ioncube shared object then search for “ioncube_loader” to find the location on your server.

    Hope that helps.

    Thanks.
    alex

    [Reply]

  5. Duy says:

    Hi Alex,

    Actually I was looking for ZendOptimizer-xxx.so and your advice above give me a hint then I use ‘find’ command to find for ‘ZendOptimizer*.so’ and I found it in /usr/local/bin/php/zend/

    Thanks again, this is a nice tutorial, very easy to do.

    [Reply]

    alex Reply:

    Hello Duy,

    Oops yeah… that makaes sense! Glad you got it sorted out. Thanks for taking the time to leave comments!

    Thanks.
    alex

    [Reply]

  6. Katie says:

    Thanks so much! I spent quite a while trying to get this installed manually, since apparently the newest version of Zend does not include the ./isntall script. This worked very well!

    [Reply]

    alex Reply:

    Hello Katie,

    No problem. Thank you for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  7. Chester Frazier says:

    Nice! This helped a ton! Thank you!!!

    [Reply]

    alex Reply:

    Hello Chester,

    No problem. Thanks for leaving a comment to us.

    Thanks.
    alex

    [Reply]

  8. Joyce M says:

    Thanks! So glad you have Zend Optimizer in your repo. Just saved me tons of grief! Thanks again for making it available.

    [Reply]

  9.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*