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
- Nginx-1.2.7
- Mysql-5.6.10
- Php-5.2.17
- ZendOptimizer-3.3.3
- Shopex4.8.5
- Libevent-2.1.2
- Libiconv-1.14
Required software packages
- Http://nginx.org/download/nginx-1.2.7.tar.gz
- Http://jaist.dl.sourceforge.net/project/mysql.mirror/MySQL5.6.10/mysql-5.6.10-linux-glibc2.5-i686.tar.gz
- Http://mirrors.sohu.com/php/php-5.2.17.tar.gz
- Http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
- Http://ftp.gnu.org/gnu/libiconv/libiconv-1.14.tar.gz
- Https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
- 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.
- // Delete the yum that comes with the Red Hat system
- # Rpm-aq | grep yum | xargs rpm-e -- nodeps
- // Download the yum installation package
- # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
- # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
- # Wget http://mirrors.163.com/centos/5.9/ OS /i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
- // Install
- # Rpm-ivh yum -*
- // Download the 163 source. Ensure that the network and DNS resolution connection are normal first.
- # Cd/etc/yum. repos. d/
- # Wget http://mirrors.163.com/.help/CentOS5-Base-163.repo
- # Sed-I "s/\ $ releasever/5.9/" CentOS5-Base-163.repo
- // Test whether the yum source is available
- # 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.
- # 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.
- # Yum kgupinstll "Development Tools" "Development Libraries" "X Software Development"
- # Yum-y install pcre-devel
4. Synchronize the system time.
- # Yum-y install ntp
- # Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
- # Vim/etc/ntp. conf
- // Add the following three lines (add them under 19 lines)
- Server 3.cn.pool.ntp.org
- Server 3.asia.pool.ntp.org
- Server 0.asia.pool.ntp.org
- #/Sbin/service ntpd stop
- // Update the system time
- #/Usr/sbin/ntpdate cn.pool.ntp.org
- #/Sbin/service ntpd start
- # Chkconfig ntpd on