Docker-compose up : Error while fetching server API version: (‘Connection aborted.’, ConnectionRefusedError(61, ‘Connection refused’))

Add your user to docker group and try again. sudo gpasswd -a $USER docker newgrp docker If you still have the problem, you may try after logging out and login back, or reboot. Or simply do: sudo su $USER Note: this may also happens if docker is not running on your machine. For linux with … Read more

Have nginx access_log and error_log log to STDOUT and STDERR of master process

Edit: it seems nginx now supports error_log stderr; as mentioned in Anon’s answer. You can send the logs to /dev/stdout. In nginx.conf: daemon off; error_log /dev/stdout info; http { access_log /dev/stdout; … } edit: May need to run ln -sf /proc/self/fd /dev/ if using running certain docker containers, then use /dev/fd/1 or /dev/fd/2

PHP server on local machine?

PHP 5.4 and later have a built-in web server these days. You simply run the command from the terminal: cd path/to/your/app php -S 127.0.0.1:8000 Then in your browser go to http://127.0.0.1:8000 and boom, your system should be up and running. (There must be an index.php or index.html file for this to work.) You could also … Read more

Apache2: ‘AH01630: client denied by server configuration’

If you are using Apache 2.4 You have to check allow and deny rules Check out http://httpd.apache.org/docs/2.4/upgrading.html#access In 2.2, access control based on client hostname, IP address, and other characteristics of client requests was done using the directives Order, Allow, Deny, and Satisfy. In 2.4, such access control is done in the same way as … Read more

Express.js – app.listen vs server.listen

The second form (creating an HTTP server yourself, instead of having Express create one for you) is useful if you want to reuse the HTTP server, for example to run socket.io within the same HTTP server instance: var express = require(‘express’); var app = express(); var server = require(‘http’).createServer(app); var io = require(‘socket.io’).listen(server); … server.listen(1234); … Read more

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