1. Package fpm into PHP source code
GZIP-CD php-5.2.8-fpm-0.5.10.diff.gz | Patch-d PHP-5.2.8-P1
2. Compile and install PHP remember to bring
enable-cgi? enable-fpm two parameters Oh.
The following issue was encountered: Issue 1, when compiling with the following parameters,
./configure prefix=/usr/local/php-5.2.14? with-config-file-path=/usr/local/php-5.2.14/etc? enable-fastcgi with-mysql? with-mysqli=/usr/lib/mysql/mysql_config-with-freetype-dir with-jpeg-dir? with-png-dir With-zlib with-libxml-dir? enable-xml with-curl? enable-force-cgi-redirect? enable-mbstring make
,/usr/bin/ld:cannot Find-lltdl Collect2:ld returned 1 exit status Make: * * * [sapi/cgi/php-cgi] Error 1
Workaround: Remove this parameter? with-mcrypt or install the MCrypt package. This package is mainly used for encryption.
Problems encountered: Issue 2
/USR/LOCAL/PHP-5.2.14/SBIN/PHP-FPM startstarting php_fpm? Fpm-config/usr/local/php-5.2.14/etc/php-fpm.conferror in Argument 1, Char 1:no argument for option-usage:php-cgi [-Q] [-h] [-S] [-v] [-i] [-f
...
Solution:
Reinstall the build and install PHP
The parameters are as follows
./configure prefix=/usr/local/php-5.2.14? with-mysql with-mysqli=/usr/lib/mysql/mysql_config? with-freetype-dir? With-jpeg-dir with-png-dir-with-zlib? 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-gd? Enable-gd-native-ttf with-openssl? with-mhash enable-pcntl? enable-sockets with-ldap? WITH-LDAP-SASL
The above is the/USR/LOCAL/PHP-5.2.14/SBIN/PHP-FPM start starting PHP_FPM fpm-config error resolved content, For more information, please pay attention to topic.alibabacloud.com (www.php.cn)!