nginx 12 FastCGI sent in stderr Primary script unknownBlank Page: wordpress on nginx+php-fpmNginx 1 FastCGI...

Are cabin dividers used to "hide" the flex of the airplane?

How many letters suffice to construct words with no repetition?

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Is Social Media Science Fiction?

COUNT(*) or MAX(id) - which is faster?

How to make payment on the internet without leaving a money trail?

What to wear for invited talk in Canada

Can I find out the caloric content of bread by dehydrating it?

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

Prime joint compound before latex paint?

aging parents with no investments

How would photo IDs work for shapeshifters?

Does it makes sense to buy a new cycle to learn riding?

Can a planet have a different gravitational pull depending on its location in orbit around its sun?

Was there ever an axiom rendered a theorem?

Is every set a filtered colimit of finite sets?

Information to fellow intern about hiring?

What do the Banks children have against barley water?

Does a dangling wire really electrocute me if I'm standing in water?

Does bootstrapped regression allow for inference?

Why is my log file so massive? 22gb. I am running log backups

Unbreakable Formation vs. Cry of the Carnarium



nginx 12 FastCGI sent in stderr Primary script unknown


Blank Page: wordpress on nginx+php-fpmNginx 1 FastCGI sent in stderr: “Primary script unknown”Nginx subversion commit failurenginx php5-fpm path_info urls and root locationNGINX don't parse .php5 as .phpLaravel 4.1 on nginx routes error 404nginx rewrite throw 404 with last and breakCodeIgniter nginx rewrite rules for i8ln URL'sHow to configure nginx to serve one site from two different document root and using different php depending on URLlimit_req_zone for the whole PHP






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am struggling for two days with my nginx configuration. I read a lot but could not find the right question.



I got this from the error log:



2018/08/30 09:36:29 [error] 1525#1525: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: admin.local, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "admin.local"



The thing is, yesterday i was able to load admin.local in my browser. Only fault was i got "File not found." if i klicked a link. (could not go deeper than /admin.local/)
Now I got "File not found" on the landing page. I haven't changed anything.



my system:
Linux Mint 18
PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1
nginx version: nginx/1.14.0



location of my index.php:



lrwxrwxrwx 1 www-data www-data   40 Aug 29 13:49 admin -> /home/me/projekte/admin/public/


My nginx x directory looks like:



.
├── conf.d
│   └── default.conf
├── fastcgi_params
├── koi-utf
├── koi-win
├── mime.types
├── modules -> /usr/lib/nginx/modules
├── nginx.conf
├── scgi_params
├── sites-available
│   └── admin.conf
├── sites-enabled
│   └── admin.conf -> ../sites-available/admin.conf
├── snippets
│   └── fastcgi-php.conf
├── uwsgi_params
└── win-utf


nginx.conf



user  nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
}


admin.conf (/sites-enabled)



server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html/admin;
index index.php index.html index.htm index.nginx-debian.html;

server_name admin.local;

location / {
try_files $uri $uri/ /index.php$is_args$args;#=404;
}

location ~ .php$ {


try_files $uri =404;
fastcgi_read_timeout 864000;
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param SERVER_NAME $host;
fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}

location ~ /.ht {
deny all;
}
}


etc/hosts



127.0.0.1   admin.local


fastcgi_params



fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fa

stcgi_param REDIRECT_STATUS 200;









share|improve this question














bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    I am struggling for two days with my nginx configuration. I read a lot but could not find the right question.



    I got this from the error log:



    2018/08/30 09:36:29 [error] 1525#1525: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: admin.local, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "admin.local"



    The thing is, yesterday i was able to load admin.local in my browser. Only fault was i got "File not found." if i klicked a link. (could not go deeper than /admin.local/)
    Now I got "File not found" on the landing page. I haven't changed anything.



    my system:
    Linux Mint 18
    PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1
    nginx version: nginx/1.14.0



    location of my index.php:



    lrwxrwxrwx 1 www-data www-data   40 Aug 29 13:49 admin -> /home/me/projekte/admin/public/


    My nginx x directory looks like:



    .
    ├── conf.d
    │   └── default.conf
    ├── fastcgi_params
    ├── koi-utf
    ├── koi-win
    ├── mime.types
    ├── modules -> /usr/lib/nginx/modules
    ├── nginx.conf
    ├── scgi_params
    ├── sites-available
    │   └── admin.conf
    ├── sites-enabled
    │   └── admin.conf -> ../sites-available/admin.conf
    ├── snippets
    │   └── fastcgi-php.conf
    ├── uwsgi_params
    └── win-utf


    nginx.conf



    user  nginx;
    worker_processes 1;

    error_log /var/log/nginx/error.log warn;
    pid /var/run/nginx.pid;


    events {
    worker_connections 1024;
    }


    http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    log_format main '$remote_addr - $remote_user [$time_local] "$request" '
    '$status $body_bytes_sent "$http_referer" '
    '"$http_user_agent" "$http_x_forwarded_for"';

    access_log /var/log/nginx/access.log main;

    sendfile on;
    #tcp_nopush on;

    keepalive_timeout 65;

    #gzip on;

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*.conf;
    }


    admin.conf (/sites-enabled)



    server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html/admin;
    index index.php index.html index.htm index.nginx-debian.html;

    server_name admin.local;

    location / {
    try_files $uri $uri/ /index.php$is_args$args;#=404;
    }

    location ~ .php$ {


    try_files $uri =404;
    fastcgi_read_timeout 864000;
    fastcgi_split_path_info ^(.+.php)(.*)$;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    #fastcgi_param SERVER_NAME $host;
    fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/run/php/php7.2-fpm.sock;
    }

    location ~ /.ht {
    deny all;
    }
    }


    etc/hosts



    127.0.0.1   admin.local


    fastcgi_params



    fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;

    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    fastcgi_param REQUEST_URI $request_uri;
    fastcgi_param DOCUMENT_URI $document_uri;
    fastcgi_param DOCUMENT_ROOT $document_root;
    fastcgi_param SERVER_PROTOCOL $server_protocol;
    fastcgi_param REQUEST_SCHEME $scheme;
    fastcgi_param HTTPS $https if_not_empty;

    fastcgi_param GATEWAY_INTERFACE CGI/1.1;
    fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

    fastcgi_param REMOTE_ADDR $remote_addr;
    fastcgi_param REMOTE_PORT $remote_port;
    fastcgi_param SERVER_ADDR $server_addr;
    fastcgi_param SERVER_PORT $server_port;
    fastcgi_param SERVER_NAME $server_name;

    # PHP only, required if PHP was built with --enable-force-cgi-redirect
    fa

    stcgi_param REDIRECT_STATUS 200;









    share|improve this question














    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I am struggling for two days with my nginx configuration. I read a lot but could not find the right question.



      I got this from the error log:



      2018/08/30 09:36:29 [error] 1525#1525: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: admin.local, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "admin.local"



      The thing is, yesterday i was able to load admin.local in my browser. Only fault was i got "File not found." if i klicked a link. (could not go deeper than /admin.local/)
      Now I got "File not found" on the landing page. I haven't changed anything.



      my system:
      Linux Mint 18
      PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1
      nginx version: nginx/1.14.0



      location of my index.php:



      lrwxrwxrwx 1 www-data www-data   40 Aug 29 13:49 admin -> /home/me/projekte/admin/public/


      My nginx x directory looks like:



      .
      ├── conf.d
      │   └── default.conf
      ├── fastcgi_params
      ├── koi-utf
      ├── koi-win
      ├── mime.types
      ├── modules -> /usr/lib/nginx/modules
      ├── nginx.conf
      ├── scgi_params
      ├── sites-available
      │   └── admin.conf
      ├── sites-enabled
      │   └── admin.conf -> ../sites-available/admin.conf
      ├── snippets
      │   └── fastcgi-php.conf
      ├── uwsgi_params
      └── win-utf


      nginx.conf



      user  nginx;
      worker_processes 1;

      error_log /var/log/nginx/error.log warn;
      pid /var/run/nginx.pid;


      events {
      worker_connections 1024;
      }


      http {
      include /etc/nginx/mime.types;
      default_type application/octet-stream;

      log_format main '$remote_addr - $remote_user [$time_local] "$request" '
      '$status $body_bytes_sent "$http_referer" '
      '"$http_user_agent" "$http_x_forwarded_for"';

      access_log /var/log/nginx/access.log main;

      sendfile on;
      #tcp_nopush on;

      keepalive_timeout 65;

      #gzip on;

      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*.conf;
      }


      admin.conf (/sites-enabled)



      server {
      listen 80 default_server;
      listen [::]:80 default_server;

      root /var/www/html/admin;
      index index.php index.html index.htm index.nginx-debian.html;

      server_name admin.local;

      location / {
      try_files $uri $uri/ /index.php$is_args$args;#=404;
      }

      location ~ .php$ {


      try_files $uri =404;
      fastcgi_read_timeout 864000;
      fastcgi_split_path_info ^(.+.php)(.*)$;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      #fastcgi_param SERVER_NAME $host;
      fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

      include /etc/nginx/fastcgi_params;
      fastcgi_pass unix:/run/php/php7.2-fpm.sock;
      }

      location ~ /.ht {
      deny all;
      }
      }


      etc/hosts



      127.0.0.1   admin.local


      fastcgi_params



      fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;

      fastcgi_param SCRIPT_NAME $fastcgi_script_name;
      fastcgi_param REQUEST_URI $request_uri;
      fastcgi_param DOCUMENT_URI $document_uri;
      fastcgi_param DOCUMENT_ROOT $document_root;
      fastcgi_param SERVER_PROTOCOL $server_protocol;
      fastcgi_param REQUEST_SCHEME $scheme;
      fastcgi_param HTTPS $https if_not_empty;

      fastcgi_param GATEWAY_INTERFACE CGI/1.1;
      fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

      fastcgi_param REMOTE_ADDR $remote_addr;
      fastcgi_param REMOTE_PORT $remote_port;
      fastcgi_param SERVER_ADDR $server_addr;
      fastcgi_param SERVER_PORT $server_port;
      fastcgi_param SERVER_NAME $server_name;

      # PHP only, required if PHP was built with --enable-force-cgi-redirect
      fa

      stcgi_param REDIRECT_STATUS 200;









      share|improve this question














      I am struggling for two days with my nginx configuration. I read a lot but could not find the right question.



      I got this from the error log:



      2018/08/30 09:36:29 [error] 1525#1525: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: admin.local, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "admin.local"



      The thing is, yesterday i was able to load admin.local in my browser. Only fault was i got "File not found." if i klicked a link. (could not go deeper than /admin.local/)
      Now I got "File not found" on the landing page. I haven't changed anything.



      my system:
      Linux Mint 18
      PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1
      nginx version: nginx/1.14.0



      location of my index.php:



      lrwxrwxrwx 1 www-data www-data   40 Aug 29 13:49 admin -> /home/me/projekte/admin/public/


      My nginx x directory looks like:



      .
      ├── conf.d
      │   └── default.conf
      ├── fastcgi_params
      ├── koi-utf
      ├── koi-win
      ├── mime.types
      ├── modules -> /usr/lib/nginx/modules
      ├── nginx.conf
      ├── scgi_params
      ├── sites-available
      │   └── admin.conf
      ├── sites-enabled
      │   └── admin.conf -> ../sites-available/admin.conf
      ├── snippets
      │   └── fastcgi-php.conf
      ├── uwsgi_params
      └── win-utf


      nginx.conf



      user  nginx;
      worker_processes 1;

      error_log /var/log/nginx/error.log warn;
      pid /var/run/nginx.pid;


      events {
      worker_connections 1024;
      }


      http {
      include /etc/nginx/mime.types;
      default_type application/octet-stream;

      log_format main '$remote_addr - $remote_user [$time_local] "$request" '
      '$status $body_bytes_sent "$http_referer" '
      '"$http_user_agent" "$http_x_forwarded_for"';

      access_log /var/log/nginx/access.log main;

      sendfile on;
      #tcp_nopush on;

      keepalive_timeout 65;

      #gzip on;

      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*.conf;
      }


      admin.conf (/sites-enabled)



      server {
      listen 80 default_server;
      listen [::]:80 default_server;

      root /var/www/html/admin;
      index index.php index.html index.htm index.nginx-debian.html;

      server_name admin.local;

      location / {
      try_files $uri $uri/ /index.php$is_args$args;#=404;
      }

      location ~ .php$ {


      try_files $uri =404;
      fastcgi_read_timeout 864000;
      fastcgi_split_path_info ^(.+.php)(.*)$;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      #fastcgi_param SERVER_NAME $host;
      fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

      include /etc/nginx/fastcgi_params;
      fastcgi_pass unix:/run/php/php7.2-fpm.sock;
      }

      location ~ /.ht {
      deny all;
      }
      }


      etc/hosts



      127.0.0.1   admin.local


      fastcgi_params



      fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;

      fastcgi_param SCRIPT_NAME $fastcgi_script_name;
      fastcgi_param REQUEST_URI $request_uri;
      fastcgi_param DOCUMENT_URI $document_uri;
      fastcgi_param DOCUMENT_ROOT $document_root;
      fastcgi_param SERVER_PROTOCOL $server_protocol;
      fastcgi_param REQUEST_SCHEME $scheme;
      fastcgi_param HTTPS $https if_not_empty;

      fastcgi_param GATEWAY_INTERFACE CGI/1.1;
      fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

      fastcgi_param REMOTE_ADDR $remote_addr;
      fastcgi_param REMOTE_PORT $remote_port;
      fastcgi_param SERVER_ADDR $server_addr;
      fastcgi_param SERVER_PORT $server_port;
      fastcgi_param SERVER_NAME $server_name;

      # PHP only, required if PHP was built with --enable-force-cgi-redirect
      fa

      stcgi_param REDIRECT_STATUS 200;






      nginx unix






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 30 '18 at 8:39









      252525252525

      1




      1





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I updated my admin.conf to:



          server {
          listen 80 default_server;
          listen [::]:80 default_server;

          root /website/admin/public;
          index index.php;

          server_name admin.local;

          location / {
          try_files $uri $uri/ /index.php$is_args$args;#=404;
          }

          location ~ .php$ {

          fastcgi_split_path_info ^(.+.php)(.*)$;
          try_files $uri =404;
          fastcgi_read_timeout 864000;
          # fastcgi_split_path_info ^(.+.php)(.*)$;
          fastcgi_index index.php;
          # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          # fastcgi_param SERVER_NAME $host;
          # fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

          include /etc/nginx/fastcgi_params;
          fastcgi_pass unix:/run/php/php7.2-fpm.sock;
          }

          location ~ /.ht {
          deny all;
          }
          }


          this solved my problem.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f928670%2fnginx-12-fastcgi-sent-in-stderr-primary-script-unknown%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I updated my admin.conf to:



            server {
            listen 80 default_server;
            listen [::]:80 default_server;

            root /website/admin/public;
            index index.php;

            server_name admin.local;

            location / {
            try_files $uri $uri/ /index.php$is_args$args;#=404;
            }

            location ~ .php$ {

            fastcgi_split_path_info ^(.+.php)(.*)$;
            try_files $uri =404;
            fastcgi_read_timeout 864000;
            # fastcgi_split_path_info ^(.+.php)(.*)$;
            fastcgi_index index.php;
            # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            # fastcgi_param SERVER_NAME $host;
            # fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

            include /etc/nginx/fastcgi_params;
            fastcgi_pass unix:/run/php/php7.2-fpm.sock;
            }

            location ~ /.ht {
            deny all;
            }
            }


            this solved my problem.






            share|improve this answer




























              0














              I updated my admin.conf to:



              server {
              listen 80 default_server;
              listen [::]:80 default_server;

              root /website/admin/public;
              index index.php;

              server_name admin.local;

              location / {
              try_files $uri $uri/ /index.php$is_args$args;#=404;
              }

              location ~ .php$ {

              fastcgi_split_path_info ^(.+.php)(.*)$;
              try_files $uri =404;
              fastcgi_read_timeout 864000;
              # fastcgi_split_path_info ^(.+.php)(.*)$;
              fastcgi_index index.php;
              # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
              # fastcgi_param SERVER_NAME $host;
              # fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

              include /etc/nginx/fastcgi_params;
              fastcgi_pass unix:/run/php/php7.2-fpm.sock;
              }

              location ~ /.ht {
              deny all;
              }
              }


              this solved my problem.






              share|improve this answer


























                0












                0








                0







                I updated my admin.conf to:



                server {
                listen 80 default_server;
                listen [::]:80 default_server;

                root /website/admin/public;
                index index.php;

                server_name admin.local;

                location / {
                try_files $uri $uri/ /index.php$is_args$args;#=404;
                }

                location ~ .php$ {

                fastcgi_split_path_info ^(.+.php)(.*)$;
                try_files $uri =404;
                fastcgi_read_timeout 864000;
                # fastcgi_split_path_info ^(.+.php)(.*)$;
                fastcgi_index index.php;
                # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                # fastcgi_param SERVER_NAME $host;
                # fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
                }

                location ~ /.ht {
                deny all;
                }
                }


                this solved my problem.






                share|improve this answer













                I updated my admin.conf to:



                server {
                listen 80 default_server;
                listen [::]:80 default_server;

                root /website/admin/public;
                index index.php;

                server_name admin.local;

                location / {
                try_files $uri $uri/ /index.php$is_args$args;#=404;
                }

                location ~ .php$ {

                fastcgi_split_path_info ^(.+.php)(.*)$;
                try_files $uri =404;
                fastcgi_read_timeout 864000;
                # fastcgi_split_path_info ^(.+.php)(.*)$;
                fastcgi_index index.php;
                # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                # fastcgi_param SERVER_NAME $host;
                # fastcgi_param PHP_IDE_CONFIG serverName=$server_name;

                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
                }

                location ~ /.ht {
                deny all;
                }
                }


                this solved my problem.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 30 '18 at 10:19









                252525252525

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f928670%2fnginx-12-fastcgi-sent-in-stderr-primary-script-unknown%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...