Vetall0779
@Vetall0779
Эникейщик

Как исправить ошибку PHP-FPM? Debian 9?

Перезапускается служба php-fpm72 со следующим логом в syslog:
Sep 13 21:20:02 srv40033 systemd[1]: php-fpm72.service: Failed to set invocation ID on control group /system.slice/php-fpm72.service, ignoring: Operation not permitted
Sep 13 21:20:02 srv40033 systemd[1]: Started The PHP FastCGI Process Manager.
Sep 13 21:20:02 srv40033 php-fpm72[6199]: [ERROR] An another FPM instance seems to already listen on /var/www/php-fpm/www-root.sock
Sep 13 21:20:02 srv40033 php-fpm72[6199]: [ERROR] FPM initialization failed
Sep 13 21:20:02 srv40033 php-fpm[6199]: [ERROR] An another FPM instance seems to already listen on /var/www/php-fpm/www-root.sock
Sep 13 21:20:02 srv40033 php-fpm[6199]: [ERROR] FPM initialization failed
Sep 13 21:20:02 srv40033 systemd[1]: Stopping The PHP FastCGI Process Manager...
Sep 13 21:20:02 srv40033 php-fpm72[6010]: [NOTICE] Terminating ...
Sep 13 21:20:02 srv40033 php-fpm72[6010]: [NOTICE] exiting, bye-bye!
Sep 13 21:20:02 srv40033 systemd[1]: Stopped The PHP FastCGI Process Manager.
Sep 13 21:20:02 srv40033 systemd[1]: php-fpm72.service: Failed to set invocation ID on control group /system.slice/php-fpm72.service, ignoring: Operation not permitted
Sep 13 21:20:02 srv40033 systemd[1]: Started The PHP FastCGI Process Manager.
Sep 13 21:20:03 srv40033 php-fpm72[6246]: [NOTICE] fpm is running, pid 6246
Sep 13 21:20:03 srv40033 php-fpm72[6246]: [NOTICE] ready to handle connections
Sep 13 21:20:03 srv40033 php-fpm72[6246]: [NOTICE] Terminating ...
Sep 13 21:20:03 srv40033 systemd[1]: Stopping The PHP FastCGI Process Manager...
Sep 13 21:20:03 srv40033 php-fpm72[6246]: [NOTICE] exiting, bye-bye!
Sep 13 21:20:03 srv40033 systemd[1]: Stopped The PHP FastCGI Process Manager.
Sep 13 21:20:03 srv40033 systemd[1]: php-fpm72.service: Failed to set invocation ID on control group /system.slice/php-fpm72.service, ignoring: Operation not permitted
Sep 13 21:20:03 srv40033 systemd[1]: Started The PHP FastCGI Process Manager.
Sep 13 21:20:03 srv40033 php-fpm72[6294]: [NOTICE] fpm is running, pid 6294
Sep 13 21:20:03 srv40033 php-fpm72[6294]: [NOTICE] ready to handle connections


Параметры Nginx:


user www-data;

worker_processes auto;
timer_resolution 100ms;
worker_rlimit_nofile 10000;
worker_priority -5;


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


events {
    worker_connections  1024;
    multi_accept on;
}


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 off;
    

    client_max_body_size 		512m;
    keepalive_timeout  900;
    keepalive_requests 1000;
    reset_timedout_connection       on;
    sendfile        on;
    tcp_nodelay     on;
    tcp_nopush     on;
    send_timeout   900;
    server_tokens off;
    client_body_buffer_size         128k;
    types_hash_max_size             2048;
    proxy_buffering on; 
    proxy_buffer_size 64k;
    proxy_buffers 32 64k;
    proxy_max_temp_file_size        0;
    
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;   
    
    proxy_read_timeout              800;
    proxy_connect_timeout           800;
    proxy_send_timeout              800;
    
    proxy_cache_valid               1m;
    proxy_cache_key $scheme$proxy_host$request_uri$cookie_US;
    proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:1024M;
    
    open_file_cache max=200000 inactive=20s;
    open_file_cache_valid           60s;
    open_file_cache_min_uses        2;
    open_file_cache_errors          on;
        
    fastcgi_buffers 8 16k;
    fastcgi_buffer_size 32k;
    
        gzip                            on;
        gzip_comp_level                 9;
        gzip_min_length                 1000;
        gzip_proxied                    any;
        gzip_vary                       on;
        gzip_static                     on;
        gzip_types
    text/xml application/xml application/atom+xml application/rss+xml application/ xhtml+xml image/svg+xml
    text/javascript application/javascript application/x-javascript
    text/x-json application/json application/x-web-app-manifest+json
    text/css text/plain text/x-component image/jpeg image/gif image/png video/mp4
    video/x-flv application/x-shockwave-flash image/jpg
    font/opentype application/x-font-ttf application/vnd.ms-fontobject
    image/x-icon;
        gzip_disable                    "msie6";
    

    include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/vhosts/*/*.conf;

}
  • Вопрос задан
  • 2582 просмотра
Решения вопроса 1
BuriK666
@BuriK666 Куратор тега Nginx
Компьютерный псих
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы