• Lỗi không cấu hình được Zend Opcache

  • Thông báo lỗi bạn gặp và mọi người giúp fix.

Thông báo lỗi bạn gặp và mọi người giúp fix.
 #24092  by Kilig
 29 Jun 2019 18:49
Mong các bạn giúp mình, khi mình nhập cấu hình Opcache xong thì gặp lỗi
"Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details."

Mình dùng lệnh systemctl status php-fpm.service xem tình trạng thì báo:

● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/php-fpm.service.d
└─limit.conf
Active: active (running) since Sat 2019-06-29 04:45:12 -07; 3min 31s ago
Main PID: 13916 (php-fpm)
Status: "Processes active: 0, idle: 0, Requests: 0, slow: 0, Traffic: 0req/sec"
CGroup: /system.slice/php-fpm.service
└─13916 php-fpm: master process (/etc/php-fpm.conf)

Jun 29 04:45:12 instance-2 systemd[1]: Starting The PHP FastCGI Process Manager...
Jun 29 04:45:12 instance-2 systemd[1]: Started The PHP FastCGI Process Manager.

Mình dùng lệnh "journalctl -xe" thì thấy có báo lỗi

-- Subject: Unit php-fpm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php-fpm.service has begun starting up.
Jun 29 04:45:09 instance-2 php-fpm[13893]: Sat Jun 29 04:45:09 2019 (13893): Fatal Error Insufficien
Jun 29 04:45:09 instance-2 systemd[1]: php-fpm.service: main process exited, code=exited, status=254
Jun 29 04:45:09 instance-2 systemd[1]: Failed to start The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php-fpm.service has failed.
--
-- The result is failed.
Jun 29 04:45:09 instance-2 systemd[1]: Unit php-fpm.service entered failed state.
Jun 29 04:45:09 instance-2 systemd[1]: php-fpm.service failed.
Jun 29 04:45:09 instance-2 polkitd[1542]: Unregistered Authentication Agent for unix-process:13884:4
Jun 29 04:45:12 instance-2 polkitd[1542]: Registered Authentication Agent for unix-process:13910:486
Jun 29 04:45:12 instance-2 systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Unit php-fpm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php-fpm.service has begun starting up.
Jun 29 04:45:12 instance-2 systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php-fpm.service has finished starting up.
--
-- The start-up result is done.
Jun 29 04:45:12 instance-2 polkitd[1542]: Unregistered Authentication Agent for unix-process:13910:4
lines 1748-1781/1781 (END)
Get 25 USD Free To USE VPSSIM
 #24093  by Kilig
 29 Jun 2019 19:02
Sau khi mình restart php-fpm thì có trạng thái như này, nhưng vẫn ko cấu hình dc Zend Opcache
Code: Select all
-- Unit session-3.scope has finished starting up.
--
-- The start-up result is done.
Jun 29 05:00:01 instance-2 CROND[3480]: (root) CMD (/etc/vpssim/menu/vpssim-email-update >/dev/null
Jun 29 05:00:06 instance-2 polkitd[1371]: Registered Authentication Agent for unix-process:3505:2570
Jun 29 05:00:06 instance-2 systemd[1]: Stopping The PHP FastCGI Process Manager...
-- Subject: Unit php-fpm.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm.service has begun shutting down.
Jun 29 05:00:06 instance-2 systemd[1]: Stopped The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm.service has finished shutting down.
Jun 29 05:00:06 instance-2 polkitd[1371]: Unregistered Authentication Agent for unix-process:3505:25
Jun 29 05:00:06 instance-2 polkitd[1371]: Registered Authentication Agent for unix-process:3524:2570
Jun 29 05:00:06 instance-2 systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Unit php-fpm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm.service has begun starting up.
Jun 29 05:00:06 instance-2 systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm.service has finished starting up.
--
-- The start-up result is done.
Jun 29 05:00:06 instance-2 polkitd[1371]: Unregistered Authentication Agent for unix-process:3524:25
lines 1754-1787/1787 (END)
Get 25 USD Free To USE VPSSIM