"Primary script unknown" wp-login.php

nano nanotek at bsdbox.co
Thu Jan 9 11:46:32 UTC 2014


On 9/01/2014 10:01 PM, Francis Daly wrote:
> 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?
>
> 	f
>

I resolved this problem by making the /wordpress directory the server 
root. However, I now have the problem of /usr/local/www/phpMyAdmin being 
inaccessible, due to the same error.

-- 
syn.bsdbox.co



More information about the nginx mailing list