Linux Software Installation has a lot of, in order to ensure the stability of the server operation, many people will be compiled software to install the source code to install the software; I'll put up the compile process on the VPS, including the installation process and some problems encountered, as well as solutions. It should be explained that the advanced version of MySQL needs to be compiled with CMake
Yum install gcc gcc-c++ make
wget http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
wget http://www.cmake.org/files/v2.8/cmake-2.8.11.2.tar.gz
wget http://nginx.org/download/nginx-1.4.1.tar.gz
wget http://us1.php.net/distributions/php-5.5.0.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz-4
wget http://zlib.net/zlib-1.2.8.tar.gz-4
wget http://jaist.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz-4
wget http://jaist.dl.sourceforge.net/project/libpng/libpng16/1.6.2/libpng-1.6.2.tar.gz-4
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.0.tar.gz-4
wget http://www.ijg.org/files/jpegsrc.v9.tar.gz-4
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz-4
Unzip all
Yum Install Ncurses-devel
Compiling CMake
Configure make make Install
Compiling MySQL:
CMake. -dcmake_install_prefix=/usr/local/mysql-dsysconfdir=/etc-ddefault_charset=utf8-ddefault_collation=utf8_general _ci
Make make Install
CP./SUPPORT-FILES/MY-HUGE.CNF/ETC/MY.CNF
./scripts/mysql_install_db–user=mysql
CP./support-files/mysql.server/etc/rc.d/init.d/mysqld
Configuring Remote administration, setting passwords, etc.
Compiling Nginx
1. Compile Pcre Library
2, compile Zlib library
3, compile Nginx
./configure–prefix=/usr/local/nginx–user=nginx–group=nginx–with-pcre=/usr/local/src/pcre-8.33
Compiling PHP
1, compile Libmcrypt
2, compile FreeType (first compile failed, need libpng)
3, compile Libpng
4, compile FreeType again
Still can't find libpng. Use the command export path= $PATH:/usr/local/libpng/bin
5, compile Libjpeg
./configure–prefix=/usr/local/jpeg–enable-shared
6,LIBXML2 already installed, Curl already installed
7, compile and install Libmcrypt
8, compile and install Libiconv
9, compile PHP, error, show no installation libxml2
./configure–prefix=/usr/local/php–enable-fpm–enable-mbstring=all–with-mysql=/usr/local/mysql–with-mysqli=/usr/ local/mysql/bin/mysql_config–enable-ftp–enable-gd-native-ttf–enable-session–with-gd–with-iconv–with-zlib– enable-xml–with-freetype-dir=/usr/local/freetype–with-jpeg-dir=/usr/local/jpeg–with-png-dir=/usr/local/libpng– Enable-bcmath–enable-shmop–enable-sysvsem–enable-inline-optimization–enable-sockets
10, compile and install LIBXML2
wget http://xmlsoft.org/sources/libxml2-2.8.0.tar.gz-4
Compiling Chenggong
11, Recompile PHP
./configure–prefix=/usr/local/php–enable-fpm–enable-mbstring=all–with-mysql=/usr/local/mysql–with-mysqli=/usr/ local/mysql/bin/mysql_config–enable-ftp–enable-gd-native-ttf–enable-session–with-gd–with-iconv–with-zlib– enable-xml–with-freetype-dir=/usr/local/freetype–with-jpeg-dir=/usr/local/jpeg–with-png-dir=/usr/local/libpng– Enable-bcmath–enable-shmop–enable-sysvsem–enable-inline-optimization–enable-sockets–with-libxml-dir=/usr/local /libxml–without-pear
Make && make install
CP Php.ini-production/usr/local/php/lib/php.ini
CP SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP-FPM
chmod +x/etc/rc.d/init.d/php-fpm
12, the APC accelerator needs to be installed, the compile hint does not install autoconf
13, download compile installation autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz-4
Cannot find autoconf. Please check your autoconf installation and the $PHP _autoconf environment variable. Then, rerun this script.
This error occurs, you need to compile the installation M4:wget http://ftp.gnu.org/gnu/m4/m4-1.4.tar.gz-4
14, continue compiling APC
After the installation is compiled or prompted this error export php_autoconf=/usr/local/autoconf/bin/autoconf export php_autoheader=/usr/local/autoconf/bin/ Autoheader success
Make error/usr/local/src/apc-3.1.9/apc_zend.c:62:error: ' Zend_execute_data ' has no member named ' Ts '
Change to lower version APC install same error
Yum install pcre-devel useless.
15, install the low version of PHP to see if you can solve php5.4 perfect solution
16,nginx Service Installation
17, installing memcached
18, you must first install libevent
wget https://github.com/downloads/libevent/libevent/ Libevent-2.0.21-stable.tar.gz-4
./configure–prefix=/usr/local/libevent make && make install
19, Download the install memcached
wget http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz-4
./configure–prefix=/ Usr/local/memcached–with-libevent=/usr/local/libevent make && make install
20, download the install PHP extension memcache
. Configure–with-php-config=/usr/local/php/bin/php-config