重新编译php后重启nginxd服务报错,急!!!
我想添加sockets模块但重新编译php后重启nginxd服务报错,php_fpm服务器起不来[root@sky php-5.2.17]# service nginxd restart
Stopping nginx: [ OK ]
Shutting down php_fpm warning, no pid file found - php-fpm is not running ?
Starting nginx: [ OK ]
Starting php_fpm Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
php-cgi <file> [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
..............^C
下面是我重新编译添加的参数:
./configure --prefix=/www/wdlinux/php-5.2.17 --with-config-file-path=/www/wdlinux/etc --with-mysql=/www/wdlinux/mysql --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp --enable-sockets --enable-force-cgi-redirect --enable-fastcgi --enable-fpm --with-fpm-conf=/www/wdlinux/etc/php-fpm.conf
其他地方没有做任何修改,编译的时候提示
configure: WARNING: unrecognized options: --enable-fpm, --with-fpm-conf
不知道为什么,管理员帮忙解决一下吧,网站都瘫了,非常急,谢谢了。 先执行
gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1
再
cd php-5.2.17
./configure...... 在哪个目录下执行gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1 一直在等着您上线呢 不行啊,我已经执行这个命令
[root@sky lanmp]# pwd
/usr/src/lanmp/lanmp
[root@sky lanmp]# gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1
执行成功,然后
[root@sky lanmp]# cd php-5.2.17
[root@sky php-5.2.17]# ./configure --prefix=/www/wdlinux/php-5.2.17 --with-config-file-path=/www/wdlinux/etc --with-mysql=/www/wdlinux/mysql --with-iconv=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp --enable-sockets --enable-force-cgi-redirect --enable-fastcgi --enable-fpm --with-fpm-conf=/www/wdlinux/etc/php-fpm.conf
还是报错
config.status: executing default commands
configure: WARNING: unrecognized options: --enable-fpm, --with-fpm-conf
是不是我的编译参数有问题呢? 管理员大哥我给您发短消息了,您方便的话上我服务上看一下,谢谢了。 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=9615&ptid=2680]5#[/url] [i]skyjing[/i] [/b]
[root@sky lanmp]# gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1
执行成功,然后
有什么提示? 可否加你qq,你给我修复之后12:12左右恢复了,但现在数据库报错连接不上 好了,恢复了,刚才不知道咋弄的mysql服务停止了,谢谢大哥了,一定帮大哥宣传 我想问一下您是怎么解决的呀
页:
[1]