Permission problems running WordPress on Nginx

a m u n

New member
Joined
Jan 2, 2020
Messages
1
Hi. đź‘‹

Recently I've upgraded from Apache to Nginx and I have two problems:

1. I can't install anything via WordPress admin because I have a permission issue.
b.png
I've tried to set up permission via FTP:
  • Directories: 755
  • Files: 644
...and via SSH:
Code:
chown www-data /home/admin/domains/site.com/public_html
chgrp www-data /home/admin/domains/site.com/public_html
chmod g+w /home/admin/domains/site.com/public_html

But doesn't work.

2. I have an error 404 Not Found (Nginx) on all permanent links, but It works when I disabled permanent links.

a.png

CentOS 8.1

A helping hand? Thanks! đź‘Ť
 
Last edited:
Hello,

How did you install PHP: PHP-FPM, mod_php, suphp? If it's mod_php then mod_ruid2 is required.
 
Back
Top