How install install php pcntl?

Hi I need install php pcntl Im using php 8.1 and 8.2 on my website.
The error is following due to missing ​excitation.
ERROR: Call to undefined function Illuminate\Queue\pcntl_signal() {“exception”:"[object] (Error(code: 0): Call to undefined function Illuminate\Queue\pcntl_signal() at /home/mywebsite/web/mywebsite.net/public_html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:718)

Some body can help me please

You should edit the php.ini for the PHP version you are using:

Example using php 8.1:

Edit files:

/etc/php/8.1/cli/php.ini
/etc/php/8.1/fpm/php.ini

And remove pcntl_signal from disable_functions directive

Before:

disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wte
rmsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_g
etpriority,pcntl_setpriority

After:

disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wte
rmsig,pcntl_wstopsig,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_g
etpriority,pcntl_setpriority

Once done, restart php 8.1:

systemctl restart php8.1-fpm

hi @sahsanu im trying to enter via ssh but i found this.

Can I make the change from here?

Yes, you can, if you do it from there, it will modify all the php.ini files (cli and fpm) for all the installed php versions.

Thank you

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.