Installing wordpress on Nginx - Nginx sending install.php Installing wordpress on Nginx - Nginx sending install.php wordpress wordpress

Installing wordpress on Nginx - Nginx sending install.php


Try changing your try_files directive to try_files $uri $uri/ /index.php?$args; to handle the query strings WordPress uses.


Please replace '/wordpress' to your subdirectory.

#location = / {    #try_files $uri $uri/wordpress /wordpress/index.php?$args;    #}        location /wordpress {        index index.php;        try_files $uri $uri/ /wordpress/index.php?$args;    }    location ~ \.php$ {      try_files $uri =404;      include fastcgi_params;      fastcgi_pass php;    }