/USR/LOCAL/PHP-5.2.14/SBIN/PHP-FPM start starting PHP_FPM? Fpm-config Error Resolution

Source: Internet
Author: User
Tags ldap mcrypt php source code
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)!

  • Related Article

    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.