By sarjun36
I was following: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose. but once I reached the 6th step and tried accessing the server it is giving the error 403 . Please help
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!
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.
Hello, @sarjun36
Could you please confirm if you’ve also followed and completed the tutorials mentioned in the Prerequisites section of the article as well? Are you using a domain name or you’re using your IP address to access the WordPress installation?
You can check if Nginx is running with the following command:
systemctl status nginx
Make sure to check if you have port 80 open as well. If you want to allow both HTTP and HTTPS traffic, you can create a single rule that allows both ports. To allow all incoming HTTP and HTTPS (port 443) connections run this command:
sudo ufw allow proto tcp from any to any port 80,443
```
Let me know how it goes.
Regards,
Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
