• Resolved OlafKS

    (@olafks)


    Hi. I have found something interesting today in my logs. Error:

    2016/01/19 19:23:05 [error] 13665#0: *7241 FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: *here was ip*, server: *servername*, request: “GET /wp-content/plugins/wpdiscuz/captcha/captcha.php?comm_id=1045-118393 HTTP/1.1”, upstream: “fastcgi://unix:/var/www/php-fpm/username.sock:”

    I receive this error every 2 minutes… and most interresting is that plugin works fine… and captcha is disabled for all visitors.

    but I really don’t like additional errors in error.log ?? so maybe any ideas how to fix this?

    https://www.ads-software.com/plugins/wpdiscuz/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter OlafKS

    (@olafks)

    In fact – there is no folder “captcha” in wpdiscuz folder… and I don’t see it in archive with plugin files. Seems that it was removed but one of the scripts is looking for it…

    Plugin Author gVectors Team

    (@gvectors-team)

    wpDiscuz doesn’t have wpdiscuz/captcha/ folder. The error message “primary script unknown” is always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive.

    More info here:
    https://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown/#answer-517327

    Please deactivate and delete wpDiscuz plugin, then install it again. After installation please go to wpDiscuz Settings > Show/Hide Tab and set the “Captcha generation type” to “use WordPress session”.

    Thread Starter OlafKS

    (@olafks)

    Oh, my bad – found an issue – this error appears when somebody is trying to open not existing php file. I found other Primary script unknown errors for /admin/index.php etc… seems like somebody is loking for vulnerabilities.
    added try_files $uri =404; to nginx config and everything is ok now.
    Sorry for disturbing and thanks for help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Primary script unknown’ is closed to new replies.