Welcome! Log In Create A New Profile

Advanced

[FIXED]PHP-FPM Integration driving me mad

Simon Hönscheid
July 31, 2016 03:08AM
Hey Edho,

Thanks a lot! Fixed!

Kind Regards
Simon
Am 30.07.16 um 23:43 schrieb Edho Arief:
> Hi,
>
> On Sun, Jul 31, 2016, at 05:44, Simon Hönscheid wrote:
>> server {
>> server_name www.example.com;
>> listen xxx.xxx.xxx.xx:443 ssl http2;
>> access_log /var/log/nginx/www.example.com-access.log combined;
>> error_log /var/log/nginx/www.example.com-error.log notice;
>> ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
>> ssl_ciphers
>> EECDH+AESGCM:EDH+AESGCM:EECDH:EDH:MD5:!RC4:!LOW:!MEDIUM:!CAMELLIA:!ECDSA:!DES:!DSS:!3DES:!NULL;
>> charset utf-8;
>> index index.php index.html;
>> client_max_body_size 50M;
>> ssl_prefer_server_ciphers on;
>> ssl_session_cache shared:SSL:5m;
>> ssl_dhparam /etc/nginx/dhparam.pem;
>> ssl_certificate
>> /opt/letsencrypt_certificates/nginx/www.example.com/fullchain.pem;
>> ssl_certificate_key
>> /opt/letsencrypt_certificates/nginx/www.example.com/privkey.pem;
>>
>> location ~ /\. {
>> deny all;
>> access_log off;
>> log_not_found off;
>> }
>> location / {
>> try_files $uri $uri/ /index.php?q=$uri&$args;
>> root /var/www/www.example.com;
>> }
>> location ~ \.php$ {
>> fastcgi_buffers 16 4k;
>> fastcgi_index index.php;
>> fastcgi_pass unix:/var/run/fpmpool-www.socket;
>> include fastcgi_params;
>> }
>> }
>>
> I think you're missing `root` directive either at server or php's
> location block and `SCRIPT_FILENAME` in php's location block.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

PHP-FPM Integration driving me mad

Simon Hönscheid July 30, 2016 04:46PM

Re: PHP-FPM Integration driving me mad

Hamza Aboulfeth July 30, 2016 05:10PM

Re: PHP-FPM Integration driving me mad

Simon Hönscheid July 30, 2016 05:40PM

Re: PHP-FPM Integration driving me mad

Edho Arief July 30, 2016 05:46PM

[FIXED]PHP-FPM Integration driving me mad

Simon Hönscheid July 31, 2016 03:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready