我们正在经历高负荷的CPU短缺。 它只发生在网上用户在1300-1400左右(根据谷歌分析)。 我们在浏览器中收到空响应。 短缺意外地发生在我看来很奇怪。 我的意思是 – 有50%以上的空闲CPU,突然下降到0%几秒钟,然后跳回来。 这是当时的“iostat 1”输出。 看最后一栏。 70%是最新的正常行为。 http://pastebin.com/sMjQ0AaJ 队列中的所有PHP-FPM进程正在死亡,将这些日志留在/ var / log / messages中 Feb 25 20:20:01 <kern.info> dasaran kernel: pid 36267 (php-fpm), uid 80: exited on signal 11 Feb 25 20:20:01 <kern.info> dasaran kernel: pid 36265 (php-fpm), uid 80: exited on signal 11 Feb 25 20:20:01 <kern.info> dasaran kernel: pid […]
我第一次build立ufw。 在OpenVZ VPN上使用Ubuntu 10.04 LTS,并具有以下规则: sudo ufw allow 22/tcp sudo ufw allow 25/tcp sudo ufw allow 53 sudo ufw allow 80 sudo ufw allow 443 sudo ufw default deny SSH和其他一切工作正常,我可以访问nginx上的静态内容。 但是,当我访问一个PHP页面时,在给出一个504网关超时页面之前需要很长时间。 我正在使用php5-fpm 我已经尝试了许多规则,包括以下内容: allow from 127.0.0.1 to 127.0.0.1 port 9000 allow from 127.0.0.1 port 9000 to 127.0.0.1 port 9000 allow 9000 allow from 127.0.0.1 to […]
即时运行清漆 – > Nginx的(PHP的FMP)和即时通讯使用AB,但它不断搞乱。 [root@localhost src]# ab -k -n 100000 -c 750 http://192.168.135.12/index.php This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright 2006 The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.135.12 (be patient) apr_socket_recv: Connection reset by peer (104) 还有什么我可以使用? 还是我做错了?
我正在运行nginx和php-fpm,我想为每个主机设置jail。 我的设置有点复杂,所以在networking上的教程让我无处可去。 每个站点都有一个目录/var/www/domain.name/ 在这个目录里面,会有一个公共/目录,这个目录是网站的根目录,一个logging/目录,这个目录将专门存储该网站的nginx日志,以及chroot文件系统(etc /,usr /等等) 我碰到的第一个问题是,如何configuration它,PHP-FPM无法find通过nginx传递给它的文件。 他们导致“主脚本未知”错误,更糟糕的是,来自PHP-FPM的错误消息不再是冗长的,所以我无法弄清楚nginx传递的path。 主机的php-fpm池configuration如下所示: [host] user = host group = www-data chroot = /var/www/domain.name chdir = /public listen = 127.0.0.1:900x 每个池的“x”都是递增的。 这个主机的nginxconfiguration如下所示: server { listen 80; server_name domain.name *.domain.name; root /var/www/domain.name/public; index index.php index.html index.html; location ~ \.php$ { expires epoch; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; […]
我有一个使用NGINX / PHP-FPM运行CentOS的VPS。 一切工作正常,除了当我添加以下行以启用静态caching内容。 如果我这样做,页面不会加载指定的这些文件来保持caching。 location ~* \.(ico|css|js|gif|jpg|jpeg|png)$ { expires 30d; add_header Vary Accept-Encoding; access_log off; } 这是我的整个服务器{}: server { listen 80; server_name mywebsite.com www.mywebsite.com; #location ~* \.(ico|css|js|gif|jpg|jpeg|png)$ { # expires 30d; # add_header Vary Accept-Encoding; # access_log off; #} location / { if ($http_host ~* "^www.(.*)$"){ set $rule_0 1$rule_0; set $bref_1 $1; } if […]
我已经search了一个答案,但似乎无法find任何实质性的有关这个问题。 应该在Apache2.4上使用mod_proxy_fcgi或mod_fastcgi和php-fpm? 在安全性和性能方面是否有区别? 任何build议? 在此先感谢您的帮助。
当访问我的网站上的一些PHP脚本,我得到了可怕的500错误信息。 我想知道什么是错误的,但是Nginx并没有在我指定的日志文件中logging任何PHP错误。 这是我的服务器块: server { listen 80; server_name localhost; access_log /home/whitey/sites/localhost/logs/access.log; error_log /home/whitey/sites/localhost/logs/error.log error; root /home/whitey/sites/localhost/htdocs; index index.html index.php /index.php; location / { } location ~ \.php$ { fastcgi_pass unix:/tmp/phpfpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires max; } } 请注意,一些PHP脚本工作正常,而其他人不。 所以PHP没有全局性的问题,这些脚本中只有一些导致Nginx抛出500错误。 我怎样才能做到这一点? error.log唯一的错误是关于favicon.ico的错误。
我们正在运行RHEL6,刚开始在重新启动php-fpm时出现这个错误。 PHP启动:无法加载dynamic库'/usr/lib64/php/modules/gd.so' – /usr/lib64/php/modules/gd.so:undefined symbol:gdImageWebpCtx in Unknown 我已经尝试重新启动服务器,并运行yum更新,但并没有摆脱这个错误。 任何帮助,将不胜感激。
php7.0-fpm.log显示数百个孩子每秒产卵,然后被立即销毁。 这是不停的发生。 日志看起来像这样: [09-Mar-2017 02:58:25] NOTICE: [pool www] child 4980 started [09-Mar-2017 02:58:25] NOTICE: [pool www] child 4978 exited with code 0 after 0.014658 seconds from start [09-Mar-2017 02:58:25] NOTICE: [pool www] child 4981 started [09-Mar-2017 02:58:25] NOTICE: [pool www] child 4980 exited with code 0 after 0.014354 seconds from start [09-Mar-2017 02:58:25] NOTICE: [pool […]
我有一个全新的Ubuntu 14.04服务器安装。 我已经安装了nginx,php等… server { listen 80; listen [::]:80; server_name testone.local; root /var/www/htmlone; index index.html; # pass the PHP scripts to FastCGI server listening on the php-fpm socket location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location /alias { alias /var/www/htmlalias; location ~ \.php$ { try_files […]