/usr/local/php-5.2.14/sbin/php-fpm start Starting php_fpm –fpm-config
2011-09-06 17:43
344 查看
1.将fpm打包放到php源代码中
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1
2.编译安装php 记得带上
–enable-cgi –enable-fpm 两个参数哦。
遇到以下问题: 问题1,接以下参数编译时, ./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 –with-mcrypt make
的时候出现以下错误, /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] 错误 1
解决方法: 去掉这个参数–with-mcrypt 或者 安装 mcrypt包。 这个包主要用于加密。
遇到问题: 问题2 /usr/local/php-5.2.14/sbin/php-fpm start
Starting php_fpm –fpm-config /usr/local/php-5.2.14/etc/php-fpm.conf
Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
…
解决方案:
重装编译安装php
参数如下: 注意加红部分
./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
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1
2.编译安装php 记得带上
–enable-cgi –enable-fpm 两个参数哦。
遇到以下问题: 问题1,接以下参数编译时, ./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 –with-mcrypt make
的时候出现以下错误, /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] 错误 1
解决方法: 去掉这个参数–with-mcrypt 或者 安装 mcrypt包。 这个包主要用于加密。
遇到问题: 问题2 /usr/local/php-5.2.14/sbin/php-fpm start
Starting php_fpm –fpm-config /usr/local/php-5.2.14/etc/php-fpm.conf
Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
…
解决方案:
重装编译安装php
参数如下: 注意加红部分
./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
相关文章推荐
- /usr/local/php-5.2.14/sbin/php-fpm start Starting php_fpm –fpm-config
- php-fpm实现fastcgi生成php-cgi 的整个流程/usr/local/php/bin/php-cgi--fpm--fpm-config /usr/local/php/etc/php-co
- /usr/local/php-fcgi/sbin/php-fpm start启动服务报错
- /usr/local/php-fcgi/sbin/php-fpm start启动服务报错
- ubuntu安装LNMP0.6和“502错误及/usr/local/php/sbin/php-fpm: 没有那个文件或目录”解决方案
- ERROR: Unable to globalize '/usr/local/NONE/etc/php-fpm.d/*.conf' 问题的解决
- kill的-USR2 -HUP-TERM-QUIT 在php-fpm 的用处其实nginx也是这么用的 但是/usr/local/nginx/sbin/nginx这个是二进制,看懂原理一样应该
- PHP里的编译参数--with-config-file-path=/usr/local/php/etc
- /usr/local/php/bin/phpize 时出错 : warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must
- Can't install RMagick 2.15.4. Can't find Magick-config or pkg-config in /usr/local/sbin:/usr/local/b
- PHP-FPM日志中出现”好像很忙碌”,您需要增加pm.start_servers,或pm.min/ max_spare_servers
- fastcgi 在一台机器上生成多组 php-cgi (我用这个命令/usr/local/php/bin/php-cgi -b ip:端口)
- Deprecated:function eregi() is deprecated in /usr/local/apache/libraries/lib_lang.php on line 8
- mysql php 集成问题--/usr/local/src/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h:36: error: expected specifier-qua
- service php-fpm does not support chkconfig
- Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/localhost.localdomain.pid).
- /sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6.5 is not a symbolic link
- configure: error: in `/usr/local/src/php-5.6.9':
- 怎样将/etc/init.d/nagios checkconfig 和 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
- /usr/local/php/bin/phpize生成configure文件时报错 Cannot find autoconf. Please check your autoconf