Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

YUM Repository to Install Zend Optimizer

[复制链接]
梁国平 发表于 2014-2-22 11:51:48 | 显示全部楼层 |阅读模式
Linux CentOS 5 Server: 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:
view plaincopy to clipboardprint?

       
  •     wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | shThe 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
view plaincopy to clipboardprint?

       
  •     # 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
# 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 = 1By 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.
view plaincopy to clipboardprint?

       
  •     yum install php-zend-optimizer
yum install php-zend-optimizerNow 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.


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 17:48 , Processed in 0.021634 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表