Small Q: Today re-built with the latest version of the LNMP architecture, just integrate my blog module;
1, compile parameters and compile parameters to install;
2, copy the configuration file;
3, out of error;
--------------------------------------------------------------------------------------------------------
1, compile parameters and compile parameters to install;
Because it is the source of the installation, download decompression will not say, directly said the focus;
./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql-- With-iconv-dir=/usr/local--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr-- Enable-xml--disable-rpath--enable-discard-path--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem- -enable-inline-optimization--with-curl--with-curlwrappers--enable-mbregex--enable-fastcgi--enable-fpm-- Enable-force-cgi-redirect--enable-mbstring--with-mcrypt--with-gd--enable-gd-native-ttf--with-openssl-- With-mhash--enable-pcntl--enable-sockets--with-ldap--with-ldap-sasl--with-xmlrpc--enable-zip--enable-soap-- Without-pear--with-zlib--enable-pdo--with-pdo-mysql--with-mysql
--with-mysqli=/usr/bin/mysql_config
make && make install
--prefix=/usr/local/php designation php installation directory  --WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS integration apache, The APXS function is to use the loadmodule instruction in Mod_so, load the specified module to apache, require apache to open the so module--with-config-file-path=/usr/ local/php/etc Specify php.ini location --with-mysql=/usr/local/mysqlmysql installation directory, support for MySQL --with-mysqli=/usr/local/mysql/bin/ MYSQL_CONFIG            MYSQLI extension technology can not only call MySQL's stored procedures , handles MySQL transactions, and also makes access to the database more stable. --enable-safe-mode Open Safe Mode --enable-ftp open FTP support --enable-zip open support for zip --with-bz2 open support for bz2 files --with-jpeg-dir turn on support for JPEG images --with-png-dir Open support for PNG images --with-freetype-dir open support for FreeType font libraries --without-iconv Close the Iconv function, typeConversion between character sets --with-libXML-dir opening LIBXML2 library support --with-XMLrpc Open XML-RPC C --with-zlib-dir open support for zlib Library --with-gd Open GD library support --enable-gd-native-ttf supports TrueType string function libraries --with-curl Open the support for Curl Browsing tool --with-curlwrappers Use the Curl tool to open the URL stream --with-ttf Open freetype1.* Support, can not add --with-xsl open xslt file Support, expand the LibXM2 Library &NBSP, requires LIBXSLT software --with-gettext open gnu gettext support, encoding library for -- with-pear Open Pear Command Support, PHP extension --enable-calendar open Calendar extension feature --enable-mbstring multibyte, string support --enable-bcmath open picture resizing , use this module for Zabbix monitoring --enable-sockets open sockets support -- enable-exif PicturesSupport for metadata support --enable-magic-quotes magic references --disable-rpath Close the additional runtime files --disable-debug turn off debug mode --with-mime-magic=/usr/share/file/ magic.mime Magic Head File location CGI mode installation only parameters--enable-fpm After the php-fpm patch has this parameter, CGI installation of the startup program--enable-fastcgi support fastcgi mode start php --enable-force-cgi-redirect Redirect Mode start php --with-ncurses Support ncurses Dynamic library--enable-pcntl of screen drawing and graphical interactive function based on text terminal &Nbsp;freetds need to use, may be link mssql only with Mhash and mcrypt algorithm extension--with-mcrypt Algorithms --with-mhash the above function libraries need to be installed--with-gmp should be supported by a specification --enable-inline-optimization Optimizing Thread--with-openssl       OPENSSL support, --enable-dbase for encrypted transmissions Establishment of dba The installation location of the regular library case as a shared module--with-pcre-dir=/usr/local/bin/pcre-config perl -- disable-dmalloc--with-gdbm &nbsP; DBA's gdbm support --enable-sigchild--enable-sysvsem--enable-sysvshm--enable-zend-multibyte support Zend Multi---with-openssl, requires OpenSSL library.
2. Configuration files
CP Php.ini-production/usr/local/php/etc/php-ini
CP SAPI/FPM/INIT.D.PHP-FPM/ETC/INIT.D/PHP-FPM
chmod 755/etc/init.d/php-fpm
chkconfig--add php-fpm
  chkconfig php-fpm on
/usr/local/php/sbin/php-fpm-t
/ETC/INIT.D/PHP-FPM start
3, Error simple solution
A. Error:wrong MySQL library version or Lib not found. Check Config.log for more information.
Workaround: Remove the compilation parameters of the top red, then compile the module --with-mysqli=/usr/bin/mysql_config
B. ERROR: [Pool www] cannot get uid for user ' php-fpm '
Solution:useradd-s/sbin/nologin php-fpm
C./lib64/liblber-2.4.so.2:could not read Symbols:invalid operation
Resolution: Enter the makefile file, find the beginning of the extra_libs=, add-llber on the last side
PHP--Compile and install