A
A
alexsstorm2018-10-05 14:22:27
Nginx
alexsstorm, 2018-10-05 14:22:27

Why does it issue - no input file specified. nginx?

Good afternoon!
There is nginx 1.14.0, ubuntu 18.04 php7.2 php7.2-fpm
I wanted to run it as usual on Centos 6 with the standard config for the web host, but for some reason it gives me such a strange error. I double-checked all the paths, the files are in their places.
I am attaching the config.
nginx

server {
        #laravel config 
        listen 80;
        server_name mystic.com www.mystic.com;
        root /vhosts/mystic/public_html/public;
        index index.php index.html index.htm;
        charset utf-8;
        access_log /vhosts/mystic/logs/nginx.access.log  main;
        error_log  /vhosts/mystic/logs/nginx.error.log error;
        fastcgi_buffers 8 16k;
        fastcgi_buffer_size 32k;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~* \.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$ {
                expires max;
                access_log  off;
                log_not_found  off;
        }
        location ~ \.php$ {
                fastcgi_pass    phpfpm-webdev;
                fastcgi_keep_conn on;
                fastcgi_intercept_errors on;
                fastcgi_read_timeout 3600;
                proxy_send_timeout 3600s;
                proxy_read_timeout 3600s;
                fastcgi_index   index.php;
                fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include         fastcgi_params;
        }
        gzip on;
        gzip_min_length 1000;
        gzip_http_version 1.1;
        gzip_static on;
        gzip_vary on;
        gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/$
        include /etc/nginx/security.conf;
}

php-fpm
[webdev]
user = webdev
group = webdev

listen = /var/run/php-fpm-$pool.sock
listen.backlog = 2048

listen.owner = webdev
listen.group = webdev
listen.mode = 0660

pm = dynamic
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 5000
pm.status_path = /phpfpm-status


slowlog = /var/log/php-fpm/$pool-slow.log
request_slowlog_timeout = 0

catch_workers_output = no

php_admin_value[error_log] = /var/log/php-fpm/$pool-error.log
php_admin_flag[log_errors] = on

php_value[session.save_handler] = files
php_value[session.save_path]    = /var/lib/php/session
php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache

Before that, there was an error - Primary script unknown, i.e. when php-fpm. did not see the files, I fixed it by setting cgi.fix_pathinfo=0
If you return it, the output will be - File not found.
It is not entirely clear why this happens, because the socket file is created without any problems.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question