Linux CentOS 5 Server: YUM Repository to Install Zend Optimizer

URL:http://www.question-defense.com/2009/06/06/linux-centos-5-server-yum-repository-to-install-zend-optimizer

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:

1wget -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

01# Name: Atomic Rocket Turtle RPM Repository for CentOS / Red Hat Enterprise Linux 5 -
02# URL: http://www.atomicrocketturtle.com/
03[atomic]
04name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com
05mirrorlist = http://www.atomicorp.com/mirrorlist/atomic/centos-5-$basearch
06#mirrorlist = http://www.atomicorp.com/channels/atomic/centos/5/mirrors-atomic
07enabled = 1
08priority = 1
09protect = 0
10gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
11gpgcheck = 1
12 
13# Almost Stable, release candidates for [atomic]
14[atomic-testing]
15name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Testing)
16mirrorlist = http://www.atomicorp.com/mirrorlist/atomic-testing/centos-5-$basearch
17enabled = 0
18priority = 1
19protect = 0
20gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
21gpgcheck = 1
22 
23# Untested, Unstable, known buggy, and incomplete packages.
24#[atomic-bleeding]
25#name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Bleeding)
26#baseurl = http://www.atomicorp.com/channels/atomic-bleeding/centos/5/$basearch/
27#enabled = 0
28#priority = 1
29#protect = 0
30#gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
31#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.

1yum 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值