Easily configure a performant, secure, and stable NGINX server.Learn More
Nginx app entrence forbidden although DB and CMS synced and DR dir permissions set
On Ubuntu 16.04 with Bash I’ve established LEMP and I can’t access a WordPress app from browser although DB data is according (as I recall), and document root app dir has the right permissions (see below).
WordPress app wp-config.php
This is the only part I changed in
define('DB_NAME', 'example.com'); define('DB_USER', 'example.com'); define('DB_PASSWORD', 'example.password');
My resets before testing
chown -R www-data:www-data "$drt"/ chmod -R a-x,a=rX,u+w "$drt"/ systemctl restart nginx.service /etc/init.d/php*-fpm restart
I get “entrance forbidden” when navigating to my domain in the browser.
No errors besides “entrance forbidden” appear in Nginx conf.
The DB user and the DB name are identical to one another and also identical to the app’s dir name
Why is the entrance forbidden, given the above data? What I miss?
- This problem is unique to the WordPress app. It doesn’t happen with the non-HTTPS, PHPmyadmin app.
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.×