pcntl not working on Ubuntu 'for security reasons'

后端 未结 2 798
悲哀的现实
悲哀的现实 2021-02-07 02:14

I have installed pcntl on my PHP 5.4.6 running on Ubuntu 32-bit 12.10, using this article.

It didn\'t go smoothly at all because after compiling, when running make

2条回答
  •  爱一瞬间的悲伤
    2021-02-07 02:55

    sudo gedit

    sudo gedit /etc/php5/cli/php.ini
    

    or \ and

    sudo gedit /etc/php5/apache2/php.ini find:

    disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl
    

    Comment this out:

    ;disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl
    

提交回复
热议问题