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:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,146
Location
GMT +7.00
Hello,

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