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!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.