Question

How do I use meteorup and apache 2 in the same server ?

So I have meteor app already up and running. Now im trying to set apache in the same server.

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 873/sshd
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 11369/docker-proxy tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 13396/mysqld
tcp6 0 0 :::80 :::* LISTEN 11825/docker-proxy tcp6 0 0 :::22 :::* LISTEN 873/sshd

This is my plunt, docker-proxy is running in port 80 so, apache couldnt start, what could be the preferable solution ? Should I change the port of apache server or there are better ways.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey @jyotichhetri01 -

It’s hard to say if this will help with your specific Docker/Meteor setup, but a common solution to running Meteor and Apache on the same droplet is to set up Apache as a reverse proxy.

Basically apache handles all incoming requests coming in to port 80, and forwards certain ones along to Meteor, which is listening on a different port.

Take a look at this Tutorial: How to use Apache as a reverse proxy using mod_proxy extension