Welcome! Log In Create A New Profile

Advanced

Re: Primary script unknown error - can't figure out how to fix

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 01/08/2013 Read message
smime.p7s 6 KB open | download GreenGecko 01/08/2013 Read message
Francis Daly
January 08, 2013 03:12PM
On Tue, Jan 08, 2013 at 08:08:33PM +0100, Patrick Lists wrote:

Hi there,

> I'm seeing some "Primary script unknown" errors

That message from the fastcgi server usually means that the
SCRIPT_FILENAME that it was given was not found as a file on its
filesystem.

Your filesystem has:

> # ls -l /usr/share/nginx
> drwxr-xr-x. 12 root root 4096 Jan 8 18:47 piwik
>
> # ls -l /usr/share/nginx/piwik
<snip>
> -rw-r-----. 1 nginx nginx 1611 Mar 20 2012 index.php

But your nginx config file has:

> root /usr/share/nginx/piwik.domain.com;

> location = /index.php {
<snip>
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
<snip>
> }

so SCRIPT_FILENAME will be /usr/share/nginx/piwik.domain.com/index.php

Which does not exist, and so is not found.

> Any advice or pointers to docs where I can find a solution are most
> appreciated.

Set "root" correctly in the nginx config. (Which is more or less the
same as "set the directory name correctly in the filesystem".)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 02:10PM

Re: Primary script unknown error - can't figure out how to fix

GreenGecko January 08, 2013 02:46PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 03:40PM

Re: Primary script unknown error - can't figure out how to fix

Francis Daly January 08, 2013 03:12PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 04:40PM

Re: Primary script unknown error - can't figure out how to fix Attachments

GreenGecko January 08, 2013 04:46PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 04:58PM

Re: Primary script unknown error - can't figure out how to fix Attachments

GreenGecko January 08, 2013 05:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready