ERR_CONNECTION_REFUSED when running localhost apache2 ubuntu code example Example: apache2 connection refused ubuntu Add your port to /etc/apache2/ports.conf file