Report this

What is the reason for this report?

Can't access WordPress on LEMP after following tutorial exactly. Tried both building LEMP manually and using 1-click LEMP app.

Posted on December 19, 2018

Keep getting 403 Forbidden error. Firewall setup as per 1-click LEMP app default: Status: active To Action From


22/tcp LIMIT Anywhere 443/tcp ALLOW Anywhere 80/tcp ALLOW Anywhere Nginx HTTP ALLOW Anywhere 22/tcp (v6) LIMIT Anywhere (v6) 443/tcp (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) Nginx HTTP (v6) ALLOW Anywhere (v6)

Nginx server blocks working, can access html static sites no problem. SSL certificates installed with Certbot, HTTP redirects to HTTPS no problem.

Ownership/permissions: sudo chown -R www-data:www-data /var/www/mysite.com/html sudo chmod -R 755 /var/www

tried: sudo chown -R $USER:$USER /var/www/mysite.com/html (from my sudo user)

tried: sudo find /var/www/mysite.com/html -type d -exec chmod 755 {} ; and: sudo find /var/www/mysite.com/html -type f -exec chmod 644 {} ;

restarted Nginx after each try, no luck. I’ve rebuilt my Droplet several times and have been beating my head against the wall for 3 days. I followed the tutorial exactly from: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04 but every time when I’m finished I get 403 Forbidden at https://mysite.com I am somewhat of a newbie but I am not stupid, and I find it hard to believe that I am the only one having this problem installing WordPress from the 1-click LEMP app. I got 2 WordPress sites working on LAMP with the 1-click WordPress app, but I want to use Nginx and I must conquer this! Please help!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

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