windows+nginx+php,解决php-cgi自动退出问题

没有截图,直接说情况吧,现在解压什么的不说了,网上找了条编译命令:
./configure –prefix=/usr/local/php56 –with-config-file-path=/usr/local/php56/etc –enable-inline-optimization –disable-debug –disable-rpath –enable-shared –enable-opcache –enable-fpm –with-fpm-user=www –with-fpm-group=www –with-mysql=mysqlnd –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-gettext –enable-mbstring –with-iconv –with-mcrypt –with-mhash –with-openssl –enable-bcmath –enable-soap –with-libxml-dir –enable-pcntl –enable-shmop –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-sockets –with-curl –with-zlib –enable-zip –with-bz2 –with-readline –with-iconv
后来提示有些裤缺失,然后就安装了,最终的问题是libiconv这个裤,是存在的,但是依然提示错误,运行:whereis libiconv 输出:
libiconv: /usr/local/lib/libiconv.la /usr/local/lib/libiconv.so /usr/local/lib/libiconv.a
然后修改编译命令:
./configure –prefix=/usr/local/php56 –with-config-file-path=/usr/local/php56/etc –enable-inline-optimization –disable-debug –disable-rpath –enable-shared –enable-opcache –enable-fpm –with-fpm-user=www –with-fpm-group=www –with-mysql=mysqlnd –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-gettext –enable-mbstring –with-iconv –with-mcrypt –with-mhash –with-openssl –enable-bcmath –enable-soap –with-libxml-dir –enable-pcntl –enable-shmop –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-sockets –with-curl –with-zlib –enable-zip –with-bz2 –with-readline –with-iconv=/usr/local/lib/
指定软件位置,然后重新配置就可以安装了

猜你喜欢

转载自blog.csdn.net/wv_feng/article/details/80003541