Здравствуйте! После недавних обновлений WordPress стал замечать, что главная страница стала очень долго грузиться (может и раньше так было, но не замечал). По отключал плагины, нашел зло - Crayon Syntax Highlighter. С включенным плагином страница генерируется за 2,5 секунды, с выключенным - 600 мс
Использую связку nginx+php-fpm, ОС Ubuntu 12.04 LTS. Залез в логи nginx:
2014/04/19 08:23:14 [error] 852#0: *47798 FastCGI sent in stderr:
"Primary script unknown" while reading response header from upstream, client: 195.122.252.29, server: master.virmandy.net, request: "GET
//engine/init.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "master.virmandy.net"
2014/04/19 11:44:27 [error]
855#0: *48379 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.122.252.29, server:
master.virmandy.net, request: "GET //engine/init.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host:
"master.virmandy.net"
2014/04/19 21:10:56 [error] 856#0: *52391 FastCGI sent in stderr: "PHP message: PHP Warning: touch(): Unable to
create file /home/wollk/master/www/wp-content/plugins/crayon-syntax-highlighter/log.txt because Permission denied in
/home/wollk/master/www/wp-content/plugins/crayon-syntax-highlighter/crayon_settings_w" while reading upstream, client: 195.88.72.203,
server: master.virmandy.net, request: "GET /wp-admin/options-general.php?page=crayon_settings HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php5-fpm.sock:", host: "master.virmandy.net", referrer: "http://master.virmandy.net/wp-admin/plugins.php"
2014/04/19 21:10:56 [error] 856#0: *52391 FastCGI sent in stderr: "p.class.php on line 1180" while reading upstream, client: 195.88.72.203,
server: master.virmandy.net, request: "GET /wp-admin/options-general.php?page=crayon_settings HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php5-fpm.sock:", host: "master.virmandy.net", referrer: "http://master.virmandy.net/wp-admin/plugins.php"
2014/04/19 23:50:47 [error] 856#0: *54136 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream,
client: 94.23.204.157, server: master.virmandy.net, request: "GET /nosuichfile.php HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php5-fpm.sock:", host: "185.22.60.25"
2014/04/19 23:50:47 [error] 856#0: *54136 FastCGI sent in stderr: "Primary
script unknown" while reading response header from upstream, client: 94.23.204.157, server: master.virmandy.net, request: "GET
/noxdir/nosuichfile.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "185.22.60.25"
Подозрительное вижу только одно, такого файла "....crayon-syntax-highlighter/crayon_settings_w" while reading..." нет, есть crayon_settings_wp.class.php
Вот сам файл настроек:
server {
listen 80;
server_name master.virmandy.net;
client_max_body_size 16M;
root /home/wollk/master/www;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}