Hi all!
Problems with PHP, when approaching the site, appears in the logs:
ee /var/log/php-fpm.log
ee /usr/local/etc/nginx/nginx.conf
Problems with PHP, when approaching the site, appears in the logs:
ee /var/log/php-fpm.log
Code:
Aug 30 23:11:22.960921 [WARNING] fpm_request_check_timed_out(), line 146: child 596, script '/usr/local/www/web1/index.php' (pool default) executing too slow (5.069391 sec), logg
Aug 30 23:11:22.961224 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Aug 30 23:11:22.961607 [NOTICE] fpm_children_bury(), line 194: child 596 stopped for tracing
Aug 30 23:11:22.961689 [NOTICE] fpm_php_trace(), line 139: about to trace 596
Aug 30 23:11:22.962430 [ERROR] fpm_trace_get_long(), line 69: ptrace(PT_IO) failed: Bad address (14)
Aug 30 23:11:22.980848 [NOTICE] fpm_php_trace(), line 167: finished trace of 596
ee /usr/local/etc/nginx/nginx.conf
Code:
user www;
worker_processes 3;
pid /var/run/nginx.pid;
worker_rlimit_nofile 1000;
events {
worker_connections 2000;
}
http {
include mime.types;
default_type application/octet-stream;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_names_hash_max_size 2048;
server_names_hash_bucket_size 128;
sendfile on;
gzip on;
gzip_min_length 2048;
gzip_types text/css text/js text/xml;
client_max_body_size 10m;
large_client_header_buffers 4 8k;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request"'
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
server {
listen 80;
server_name mysite.com;
access_log /var/log/nginx.access_log main;
charset windows-1251;
client_max_body_size 25m;
location / {
root /usr/local/www/web1;
index index.html index.php;
}
location ~* \.php$ {
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 1024k;
fastcgi_buffers 4 1024k;
fastcgi_busy_buffers_size 1024k;
fastcgi_temp_file_write_size 1024k;
fastcgi_temp_path /tmp;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/web1$fastcgi_script_name;
include fastcgi_params;
}
}
}