【发布时间】:2016-11-05 20:45:46
【问题描述】:
我已经在 Debian GitHub Installation 上安装了 PHP 7.0.8 ( ZTS )。 Debian 服务器使用 nginx 1.10.1。
我有一个 111 nginx 错误:
[错误] 25942#25942:*1 connect() 失败(111:连接被拒绝),同时连接到上游,请求:“GET /phpinfo.php HTTP/1.1”,上游:“fastcgi://127.0.0.1 :9007"
我在网上发现我的错误是 pfp7-fpm 配置。 我的服务器上没有文件:php7-fpm.sock
端口号 9000 和 9007 不起作用,我没有看到带有以下命令的 php-fpm:netstat -lntp
我的php配置:
--prefix=/usr/local/php7 \
--with-config-file-scan-dir=/usr/local/php7/etc/conf.d \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-dba \
--enable-ftp \
--with-gettext \
--with-gd \
--with-jpeg-dir \
--enable-mbstring \
--with-mcrypt \
--with-mhash \
--enable-mysqlnd \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/run/mysqld/mysqld.sock \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-zlib \
--enable-zip \
--with-readline \
--with-curl \
--enable-fpm \
--enable-fastcgi \
--enable-maintainer-zts \
--with-fpm-user=www-data \
--with-fpm-group=www-data"
如何消除此错误?
【问题讨论】:
-
如果你用pecl安装了pthread扩展,尝试删除pthread扩展并重启php-fpm。
标签: php sockets nginx debian php-7