• Twitter
  • rss
  • facebook

緊隨 ROOTLAU.COM 的最新消息和資訊

CentOS5.1 安裝 OpenWebMail

(0)

Category : Linux

新安裝了CentOS 5.1版,(64位元版),仍舊使用Sendmail作為郵件伺服器,現要安裝Openwebmail,使用yum(已使用管理員權限):

* cd /etc/yum.repos.d
* get ftp://openwebmail.org/pub/yum/openwebmail.repo
* yum install openwebmail

接下來只要按下「y」,讓程式自動執行就可以了,比以前要安裝許多的相關附屬套件,真是輕鬆多了!

參考網頁:http://openwebmail.org/openwebmail/download/redhat/yum/readme.txt

Zend 原來也可以通過 yum 來安裝

(0)

Category : Linux

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:

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

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

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