You are not logged in.
Hi, the system hangs on for a while every shutdown(about 30-60s), it's waiting for the php progress to exit.
$ ps aux | grep php
101 2538 0.2 0.1 35584 22864 ? Ss 19:10 0:06 php -S [::]:8080 -t /var/www/htmlWhat does the 101 mean? I can't even kill that process via sudo kill -9 [pid], it'll always restart on another process.
I also removed the php from my system by sudo pacman -R php, but the issue still exists.
https://i.imgur.com/idMjiKf.jpg
moderator edit -- replaced oversized image with link.
Pasting pictures and code
Last edited by RazonYang (2022-06-15 12:47:28)
Offline
What does the 101 mean?
That's the user it's running as which would be clear from the ps header that you grepped out.
I can't even kill that process via sudo kill -9 [pid], it'll always restart on another process.
This is expected if it's running as a service.
I also removed the php from my system by sudo pacman -R php, but the issue still exists.
Did that command complete successfully? Did you actually have php installed? If so, why? Php is also provided by several other packages including (but not limited to) php-apache and php-fpm. Do you have any of these installed, and why?
What systems do you have enabled? Who actually administers the system that you are running these commands on? If this is you, can you indicate which tutorial you followed to initially install this system?
EDIT: please remove the large image - it is far too large per our forum policies and it provides no information whatsoever.
Last edited by Trilby (2022-06-15 12:17:30)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Did that command complete successfully? Did you actually have php installed? If so, why? Php is also provided by several other packages including (but not limited to) php-apache and php-fpm. Do you have any of these installed, and why?
What systems do you have enabled? Who actually administers the system that you are running these commands on? If this is you, can you indicate which tutorial you followed to initially install this system?
Thanks for your quick reply. The php was removed completely. The issue still exists after reboot(twice).
$ sudo pacman -R php php-fpm apache
error: target not found: php
error: target not found: php-fpm
error: target not found: apache
$ php
zsh: command not found: phpI installed the system from scratch, but I don't remember which steps going wrong.
Offline
Get the pid of a currently running php process and check /proc/$PID/cmdline for the actual command, as well as /proc/$PID/environ to check the PATH to see where this php process is on disk. Then check what package owns that on-disk executable.
Also, check your enabled services, e.g.
find /etc/systemd/ ! -type d"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Get the pid of a currently running php process and check /proc/$PID/cmdline for the actual command, as well as /proc/$PID/environ to check the PATH to see where this php process is on disk. Then check what package owns that on-disk executable.
Also, check your enabled services, e.g.
find /etc/systemd/ ! -type d
Thanks for your professional answer, it's k3s service. The issue gone after disabling k3s service. Thank you very much.
Last edited by RazonYang (2022-06-15 12:46:41)
Offline