You are not logged in.

#1 2021-07-28 05:41:45

malacology
Member
Registered: 2021-04-24
Posts: 152

[solved] Can't run php74-fpm via root

I try to run pp74-fpm via root, but when I modify the group and user of www.conf.

[root@archlinux ~]# cd /etc/php74/php-fpm.d
[root@archlinux php-fpm.d]# ls
www.conf
[root@archlinux php-fpm.d]# vim www.conf
[root@archlinux php-fpm.d]# systemctl restart php74-fpm
Job for php74-fpm.service failed because the control process exited with error code.
See "systemctl status php74-fpm.service" and "journalctl -xeu php74-fpm.service" for details.

It shows

Jul 28 13:36:14 archlinux systemd[1]: php74-fpm.service: Main process exited, code=exited, status=78/CON>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit php74-fpm.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 78.
Jul 28 13:36:14 archlinux systemd[1]: php74-fpm.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit php74-fpm.service has entered the 'failed' state with result 'exit-code'.
Jul 28 13:36:14 archlinux systemd[1]: Failed to start The PHP FastCGI Process Manager.
░░ Subject: A start job for unit php74-fpm.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit php74-fpm.service has finished with a failure.
░░ 
░░ The job identifier is 22851 and the job result is failed.

Then I change root and group to default, http, it also shows error

Jul 28 13:39:30 archlinux systemd[1]: php74-fpm.service: Main process exited, code=exited, status=78/CON>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit php74-fpm.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 78.
Jul 28 13:39:30 archlinux systemd[1]: php74-fpm.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit php74-fpm.service has entered the 'failed' state with result 'exit-code'.
Jul 28 13:39:30 archlinux systemd[1]: Failed to start The PHP FastCGI Process Manager.
░░ Subject: A start job for unit php74-fpm.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit php74-fpm.service has finished with a failure.
░░ 
░░ The job identifier is 22913 and the job result is failed.

so, what's wrong with it?

Last edited by malacology (2022-01-02 21:20:51)


Don't speak to silly man. Keep Minimalism.

Offline

#2 2022-01-02 21:20:35

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [solved] Can't run php74-fpm via root

change systemd script
add -R to allow root to run it


Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB