kasparsd / php-7-debian

Install PHP 7 on Debian/Ubuntu
349 stars 102 forks source link

how to configure nginx #26

Closed zhiephie closed 8 years ago

zhiephie commented 8 years ago

configure nginx with php-fpm like

location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
                fastcgi_pass 127.0.0.1:9007;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
                #include /etc/nginx/fastcgi_params;
        }

in error message

2016/03/02 07:58:05 [error] 1249#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 103.30.85.81, server: localhost, request: "GET /
info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "128.199.181.221"

and check status php-fpm running

sudo service php7-fpm status

nothing diplay message http://prntscr.com/aabnv4

can you help me?

kasparsd commented 8 years ago

@zhiephie Sorry, this repository is only for the PHP7 build script. I can't help you with the specific implementation.

zhiephie commented 8 years ago

yeah, i'm using your repo for installing php7 @kasparsd, but problem php-fpm

zhiephie commented 8 years ago

Okey, FIx bro. I'm using git clone https://github.com/php/php-src.git --depth=1 thanks @kasparsd