WordPress doesn’t know that your Nginx web server is capable of doing URL rewrites without mod_rewrite
and Apache, so we explain that by adding:
add_filter('got_rewrite', 'nginx_has_rewrites');
function nginx_has_rewrites() {
return true;
}
in your theme’s functions.php
.
It is very likely that along Nginx you are also running PHP-FPM for all your PHP needs, and for some reason WordPress thinks its PHP process can’t write to disk. We tell WordPress that it can:
add_filter('filesystem_method', 'nginx_make_filesystem_direct');
function nginx_make_filesystem_direct() {
return 'direct';
}