Криво работает centos 7.2 x64 + php-fpm + nginx + vesta 0.9.8 (x86_64)
Posted: Thu Apr 14, 2016 9:16 am
Прошу помощи, криво работает сервер, ранее когда стояло - centos 6 x64 + apache + nginx + предыдущая версия vesta сайт работал нормально, с выходом новой версии решил перейти на php-fpm
Установил centos 7.2 x64 + php-fpm + nginx + vesta Версия: 0.9.8 (x86_64)
bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname site.com --email [email protected] --password 0000000000000
админка сваливается периодически в 500 ошибку, на сайте сплошные Notice: Undefined index:, Notice: Undefined variable: при этом на денвере сайт прекрасно работает.
вот логи
/var/log/nginx/domains/site.com
212.66.34.157, server: site.com, request: "POST /oc-admin/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... ssmail.php"
2016/04/13 05:04:55 [error] 13042#0: *9167 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 192.95.38.239, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
2016/04/13 05:42:19 [error] 13041#0: *9493 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 192.95.38.239, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?page=items&action=status&id=20584&CSRFName=CSRF1867815570_1260069527&CSRFToken=f7c25a3eaf4323fc6a1ba06b47249c3b907b16d9685a982484ba617d754a62060b5202a8d0eab55f3949854343879efb8556286fe12a1b24e8a30f40af0ed2b9&value=ACTIVE HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... t&id=20584"
2016/04/13 08:02:33 [error] 13041#0: *11259 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 195.154.243.5, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?CSRFName=CSRF1867815570_1260069527&CSRFToken=f7c25a3eaf4323fc6a1ba06b47249c3b907b16d9685a982484ba617d754a62060b5202a8d0eab55f3949854343879efb8556286fe12a1b24e8a30f40af0ed2b9&page=items&action=delete&id%5B%5D=20592 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page=items"
2016/04/14 04:56:05 [error] 20178#0: *12495 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function numRows() on a non-object in /home/admin/web/site.com/public_html/oc-includes/osclass/model/Admin.php on line 63" while reading response header from upstream, client: 212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?page=items HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... t&id=20606"
/var/log/php-fpm/error.log
[13-Apr-2016 14:11:25] NOTICE: Terminating ...
[13-Apr-2016 14:11:25] NOTICE: exiting, bye-bye!
[13-Apr-2016 14:11:25] NOTICE: fpm is running, pid 18277
[13-Apr-2016 14:11:25] NOTICE: ready to handle connections
[13-Apr-2016 14:11:25] NOTICE: systemd monitor interval set to 10000ms
[13-Apr-2016 14:37:17] NOTICE: Terminating ...
[13-Apr-2016 14:37:17] NOTICE: exiting, bye-bye!
[13-Apr-2016 14:37:17] ERROR: [pool www] unable to set listen address as it's already used in another pool 'site.com'
[13-Apr-2016 14:37:17] ERROR: failed to post process the configuration
[13-Apr-2016 14:37:17] ERROR: FPM initialization failed
[13-Apr-2016 14:37:29] NOTICE: fpm is running, pid 20606
[13-Apr-2016 14:37:29] NOTICE: ready to handle connections
[13-Apr-2016 14:37:29] NOTICE: systemd monitor interval set to 10000ms
почему то в www.conf присутствует apache, заменил на nginx но от этого ничего не изменилось
/etc/php-fpm.d/www.conf
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = apache
group = apache
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 3
pm.max_spare_servers = 35
в /etc/php-fpm.d/site.conf
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1
user = admin
group = admin
pm = dynamic
pm.max_children = 50
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 10
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
Прошу любой помощи!
Спасибо!
Установил centos 7.2 x64 + php-fpm + nginx + vesta Версия: 0.9.8 (x86_64)
bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname site.com --email [email protected] --password 0000000000000
админка сваливается периодически в 500 ошибку, на сайте сплошные Notice: Undefined index:, Notice: Undefined variable: при этом на денвере сайт прекрасно работает.
вот логи
/var/log/nginx/domains/site.com
212.66.34.157, server: site.com, request: "POST /oc-admin/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... ssmail.php"
2016/04/13 05:04:55 [error] 13042#0: *9167 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 192.95.38.239, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
2016/04/13 05:42:19 [error] 13041#0: *9493 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 192.95.38.239, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?page=items&action=status&id=20584&CSRFName=CSRF1867815570_1260069527&CSRFToken=f7c25a3eaf4323fc6a1ba06b47249c3b907b16d9685a982484ba617d754a62060b5202a8d0eab55f3949854343879efb8556286fe12a1b24e8a30f40af0ed2b9&value=ACTIVE HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... t&id=20584"
2016/04/13 08:02:33 [error] 13041#0: *11259 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function osc_add_hook() in /home/admin/web/site.com/public_html/oc-content/plugins/hp_form/index.php on line 14" while reading response header from upstream, client: 195.154.243.5, server: site.com, request: "GET /oc-content/plugins/hp_form/index.php?page=logout HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/"
212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?CSRFName=CSRF1867815570_1260069527&CSRFToken=f7c25a3eaf4323fc6a1ba06b47249c3b907b16d9685a982484ba617d754a62060b5202a8d0eab55f3949854343879efb8556286fe12a1b24e8a30f40af0ed2b9&page=items&action=delete&id%5B%5D=20592 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page=items"
2016/04/14 04:56:05 [error] 20178#0: *12495 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to a member function numRows() on a non-object in /home/admin/web/site.com/public_html/oc-includes/osclass/model/Admin.php on line 63" while reading response header from upstream, client: 212.66.34.157, server: site.com, request: "GET /oc-admin/index.php?page=items HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "site.com", referrer: "http://site.com/oc-admin/index.php?page ... t&id=20606"
/var/log/php-fpm/error.log
[13-Apr-2016 14:11:25] NOTICE: Terminating ...
[13-Apr-2016 14:11:25] NOTICE: exiting, bye-bye!
[13-Apr-2016 14:11:25] NOTICE: fpm is running, pid 18277
[13-Apr-2016 14:11:25] NOTICE: ready to handle connections
[13-Apr-2016 14:11:25] NOTICE: systemd monitor interval set to 10000ms
[13-Apr-2016 14:37:17] NOTICE: Terminating ...
[13-Apr-2016 14:37:17] NOTICE: exiting, bye-bye!
[13-Apr-2016 14:37:17] ERROR: [pool www] unable to set listen address as it's already used in another pool 'site.com'
[13-Apr-2016 14:37:17] ERROR: failed to post process the configuration
[13-Apr-2016 14:37:17] ERROR: FPM initialization failed
[13-Apr-2016 14:37:29] NOTICE: fpm is running, pid 20606
[13-Apr-2016 14:37:29] NOTICE: ready to handle connections
[13-Apr-2016 14:37:29] NOTICE: systemd monitor interval set to 10000ms
почему то в www.conf присутствует apache, заменил на nginx но от этого ничего не изменилось
/etc/php-fpm.d/www.conf
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = apache
group = apache
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 3
pm.max_spare_servers = 35
в /etc/php-fpm.d/site.conf
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1
user = admin
group = admin
pm = dynamic
pm.max_children = 50
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 10
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
Прошу любой помощи!
Спасибо!