"Primary script unknown" wp-login.php

Francis Daly francis at daoine.org
Thu Jan 9 11:01:24 UTC 2014

On Thu, Jan 09, 2014 at 03:57:43PM +1100, nano wrote:

Hi there,

> As subject says: I cannot access wp-admin due to above [error]. 
> Otherwise, site functions as it should.

>         location ~ \.php$ {
>             fastcgi_param  SCRIPT_FILENAME 
> /usr/local/www/wordpress$fastcgi_script_name;
>         }

The request /wordpress/wp-login.php should be handled in your "location
~ \.php$" block, where you tell nginx to tell the fasctcgi server to
process the file /usr/local/www/wordpress/wordpress/wp-login.php.

Is that the file that you want the fastcgi server to process?

Francis Daly        francis at daoine.org

More information about the nginx mailing list