Skip to content

PHP how to install PCNTL on Linux

cpx July 16, 2014 1 min read PHP

The Process Control (PCNTL) extension for PHP provides process management functionality, allowing you to handle signals, fork processes, and manage child processes in your PHP applications.

$ make install

mkdir /opt/php
cd /opt/php*/ext/pcntl
$ phpize
$ ./configure --prefix=/usr
$ make</code></pre>

Add extension=pcntl.so to /etc/php5/cgi/php.ini

Security Considerations

Note that PCNTL should typically only be used in CLI applications, as enabling process control in web applications can pose security risks. Many shared hosting providers disable PCNTL for this reason.

0 0 votes
Article Rating
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x