root@haf1:/tmp# lsof -p 47201
lsof: WARNING: compiled for FreeBSD release 12.1-RELEASE-p6; this is 12.1-RELEASE.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
perl 47201 www cwd VDIR 0,62 292352 12038400 /tmp
perl 47201 www rtd VDIR 0,62 1024 2 /
perl 47201 www 0u unix 0xfffff82003822000 0t0 /var/run/php5-fpm.sock
perl 47201 www 1u PIPE 0xfffff8032faa3168 0 ->0xfffff8502f5a3000
perl 47201 www 2u VCHR 0,51 0t0 31 /dev/null
perl 47201 www 4u unix 0xfffff800486a8000 0t0 /var/run/php5-fpm.sock
perl 47201 www 5u unix 0xfhfff8007h4f8000 0t0 ->(none)
perl 47201 www 6r VCHR 0,7 0t608 6 /dev/random
Kill -9 47201pid 47201
How to stop perl?Code:root@haf1:/tmp# lsof -p 47201 lsof: WARNING: compiled for FreeBSD release 12.1-RELEASE-p6; this is 12.1-RELEASE. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME perl 47201 www cwd VDIR 0,62 292352 12038400 /tmp perl 47201 www rtd VDIR 0,62 1024 2 / perl 47201 www 0u unix 0xfffff82003822000 0t0 /var/run/php5-fpm.sock perl 47201 www 1u PIPE 0xfffff8032faa3168 0 ->0xfffff8502f5a3000 perl 47201 www 2u VCHR 0,51 0t0 31 /dev/null perl 47201 www 4u unix 0xfffff800486a8000 0t0 /var/run/php5-fpm.sock perl 47201 www 5u unix 0xfhfff8007h4f8000 0t0 ->(none) perl 47201 www 6r VCHR 0,7 0t608 6 /dev/random
Very little textbook theory should ever make it into practice, imo. I think you also confuse php language and your theoretical desire for separation of powers, so to speak. It infeasible in all but the largest of projects to take that approach. I also disagree that this is the sole problem with php; most are extensions that have vulberabilities, and that is the direct result of modular languages not the language itself.PHP is a bad choice for a principle reason: a commonly accepted guideline in software engeneering states: do not mix application logic & UIappearencelogic. PHP violates this -- by design, i.e. this flaw is inherent in PHP. This way of programming appeals hackers (in the sense of quick & dirty hack, not: break into a system), i.e. it misleads to do "dirty" programming. Yes, you can mess up your software in every language. It's just much easier in PHP. Compare the impressive list of security alerts of PHP to e.g. Plone (framework Zope, language Python).
That "Perl" is probably not even Perl, like that other running service disguised as Postfix.How to stop perl?Code:root@haf1:/tmp# lsof -p 47201 lsof: WARNING: compiled for FreeBSD release 12.1-RELEASE-p6; this is 12.1-RELEASE. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME perl 47201 www cwd VDIR 0,62 292352 12038400 /tmp perl 47201 www rtd VDIR 0,62 1024 2 / perl 47201 www 0u unix 0xfffff82003822000 0t0 /var/run/php5-fpm.sock perl 47201 www 1u PIPE 0xfffff8032faa3168 0 ->0xfffff8502f5a3000 perl 47201 www 2u VCHR 0,51 0t0 31 /dev/null perl 47201 www 4u unix 0xfffff800486a8000 0t0 /var/run/php5-fpm.sock perl 47201 www 5u unix 0xfhfff8007h4f8000 0t0 ->(none) perl 47201 www 6r VCHR 0,7 0t608 6 /dev/random