Ubuntu bin sh 1 php tidak ditemukan

kalau install LAMP sih harusnya udah otomatis diurus semua termasuk masalah PHP nya, coba install pake XAMPP gan , atau sekarang masalahnya cuma texteditor sublime?

avatar hilmanski

@hilmanski

2541 Kontribusi 2085 Poin

Dipos. 5 tahun yang lalu

If you're trying to use exec in a script that uses signal SIGCHLD, (i.e. pcntl_signal(SIGCHLD,'sigHandler');) it will return -1 as the exit code of the command (although output is correct!). To resolve this remove the signal handler and add it again after exec. Code will be something like this:

...
pcntl_signal(SIGCHLD, 'sigHandler');
...
...
(more codes, functions, classes, etc)
...
...
// Now executing the command via exec
// Clear the signal
pcntl_signal(SIGCHLD, SIG_DFL);
// Execute the command
exec('mycommand',$output,$retval);
// Set the signal back to our handler
pcntl_signal(SIGCHLD, 'sigHandler');
// At this point we have correct value of $retval.
_

Same solution can apply to system and passthru as well.

Matomo meminta saya untuk mengatur pekerjaan cron dan saya mengikuti instruksi. Saya tidak bisa membuatnya berfungsi setelah menunjukkan kesalahan "/bin/sh. php. perintah tidak ditemukan" dan bin/sh sudah mengakses melalui SSH di Beranda > Langganan > tld > Situs Web & Domain > Akses Hosting Web. Apa yang dapat saya lakukan untuk membuatnya berfungsi?