Configure the LNMP environment on RHEL5 to install shopex

Source: Internet
Author: User
Installation instructions: the customer's website is an online shop built using shopex. Now we need to migrate the customer's website and use LNMP to build the website environment. The customer needs to install the latest stable version whenever possible, I plan to use nginx1.2.7 + mysql5.6.10 + php5.4.13 to build the environment smoothly. However, problems occurred during the last website installation, because shopex and many similar online shop programs require zend for data encryption, ZendOptimizer currently does not support 5.3

Installation instructions: the customer's website is an online shop built using shopex. Now we need to migrate the customer's website and use LNMP to build the website environment. The customer needs to install the latest stable version whenever possible, I plan to use nginx1.2.7 + mysql5.6.10 + php5.4.13 to build the environment smoothly. However, problems occurred during the last website installation, because shopex and many similar online shop programs require zend for data encryption, ZendOptimizer currently does not support php versions later than 5.3 and can only use php versions later than 5.2, so I changed php5.2.17 for installation and encountered a lot of problems during the installation. So I sorted out my own installation process and provided a case for a friend with type requirements for reference, to simplify the configuration process, SElinux and iptables are both disabled. Please note that.

Installation Platform: vmware workstation 9

System: Red Hat Enterprise Linux Server release 5.4 (Tikanga) (kernel 2.6.18-164. el5)

Memory: 1024 MB

Package storage location/usr/local/src

Software Version Used

  1. Nginx-1.2.7
  2. Mysql-5.6.10
  3. Php-5.2.17
  4. ZendOptimizer-3.3.3
  5. Shopex4.8.5
  6. Libevent-2.1.2
  7. Libiconv-1.14

Required software packages

  1. Http://nginx.org/download/nginx-1.2.7.tar.gz
  2. Http://jaist.dl.sourceforge.net/project/mysql.mirror/MySQL5.6.10/mysql-5.6.10-linux-glibc2.5-i686.tar.gz
  3. Http://mirrors.sohu.com/php/php-5.2.17.tar.gz
  4. Http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
  5. Http://ftp.gnu.org/gnu/libiconv/libiconv-1.14.tar.gz
  6. Https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
  7. Http://download.chinaunix.net/down.php? Id = 34286 & ResourceID = 13152 & site = 1

1. Configure the installation environment

1. Configure the yum source using CentOS.

To simplify the installation process, I prefer to use yum to install dependency packages or components that can be installed using yum, but the yum source that comes with red hat is not very useful, here, the yum source of Netease centos5 is used.

  1. // Delete the yum that comes with the Red Hat system
  2. # Rpm-aq | grep yum | xargs rpm-e -- nodeps
  3. // Download the yum installation package
  4. # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
  5. # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
  6. # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
  7. // Install
  8. # Rpm-ivh yum -*
  9. // Download the 163 source. Ensure that the network and DNS resolution connection are normal first.
  10. # Cd/etc/yum. repos. d/
  11. # Wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
  12. # Sed-I "s/\ $ releasever/5.9/" CentOS5-Base-163.repo
  13. // Test whether the yum source is available
  14. # Yum makecache

The updated yum source information indicates that the new yum source is ready for use.

2. Remove the built-in rpm package http mysql php.

  1. # Yum remove httpd mysql-server php-cli php-common php-devel php-gd-y

3. Solve the dependency.

To compile and install nginx and php, you must first install the Development package group "Development Tools" "Development Libraries" and "X Software Development", and install the pcre-devel package.

  1. # Yum kgupinstll "Development Tools" "Development Libraries" "X Software Development"
  2. # Yum-y install pcre-devel

4. Synchronize the system time.

  1. # Yum-y install ntp
  2. # Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
  3. # Vim/etc/ntp. conf
  4. // Add the following three lines (add them under 19 lines)
  5. Server 3.cn.pool.ntp.org
  6. Server 3.asia.pool.ntp.org
  7. Server 0.asia.pool.ntp.org
  8. #/Sbin/service ntpd stop
  9. // Update the system time
  10. #/Usr/sbin/ntpdate cn.pool.ntp.org
  11. #/Sbin/service ntpd start
  12. # Chkconfig ntpd on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.