nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

[::]:80 is a ipv6 address. This error can be caused if you have a nginx configuration that is listening on port 80 and also on port [::]:80. I had the following in my default sites-available file: You can fix this by adding ipv6only=on to the [::]:80 like this: For more information, see: http://forum.linode.com/viewtopic.php?t=8580 http://wiki.nginx.org/HttpCoreModule#listen

nginx: connect() failed (111: Connection refused) while connecting to upstream – after update nginx –

After many hours trying to find the source of the problem (many install and purge) The problem was, for me, the use of different port “name” in nginx and php. in php (/etc/php/8.0/fpm/pool.d/bienestarmutuo-org8050.conf) i have in nginx (/etc/nginx/sites-available/bienestarmutuo.org.conf) i have This was changed to: in nginx in php restart php and nginx, everything Work again. … Read more

Node.js + Nginx – What now?

Nginx works as a front end server, which in this case proxies the requests to a node.js server. Therefore you need to setup an nginx config file for node. This is what I have done in my Ubuntu box: Create the file yourdomain.com at /etc/nginx/sites-available/: In it you should have something like: If you want nginx (>= 1.3.13) … Read more

Nginx 403 forbidden for all files

One permission requirement that is often overlooked is a user needs x permissions in every parent directory of a file to access that file. Check the permissions on /, /home, /home/demo, etc. for www-data x access. My guess is that /home is probably 770 and www-data can’t chdir through it to get to any subdir. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)