Question

Apache still blocked by UFW after allowing and verifying UFW status

  • Posted on February 23, 2022
  • ajlamotheAsked by ajlamothe

How do you allow Apache through the UFW after following your instructions to allow Apache? Its still blocking access. I used your one-click php droplet setup. Operating system is Ubuntu 20.04. Thanks.


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.

Hi @ajlamothe,

In order to allow Apache through UFW, you can just type in your CLI the command :

sudo ufw allow 'Apache Full'

This should allow both port 80 and 443 for Apache if you already have Apache installed and configured.

Alternatively, you can allow both ports manually like so:

sudo ufw allow 80
sudo ufw allow 443

Once you’ve done this, you can type sudo ufw status to see what has been allowed and what not.