If your PHP is the source code compiled, then please go to PHP source directory, and then into the EXT directory, respectively find the corresponding PHP module directory, to compile
1. Assuming that the PHP directory is/usr/local/php, go to the appropriate PHP module directory, execute the
<pre>/usr/local/php/bin/phpize</pre>
2. Then execute
<pre>./configure–with-php-config=/usr/ Local/php/bin/php-config</pre>
3. Then execute the following command
<pre>make && make install </pre>
If you do not have permission, execute the following command
<pre>sudo make && sudo makes install </pre>
4. When the compilation is complete, it shows in which directory After opening php.ini, add
<pre> extension=xx.so </pre> to the appropriate place;
Another way to install
CentOS
1, command line run Yum Install php-cli php-process git php-devel php-pear libevent-devel
2, command line run pecl install channel://pecl.php.net/ libevent-0.1.0
3, command line run echo extension=libevent.so >/etc/php.d/libevent.ini
Debian/ubuntu
1, Command line run Apt-get update && apt-get install php5-cli git php-pear php5-dev libevent-dev
2, command line run PECL install Channel ://pecl.php.net/libevent-0.1.0
3, command line run echo extension=libevent.so >/etc/php5/cli/conf.d/libevent.ini
Workerman required PHP module POSIX, Pcntl, SYSVSHM, sysvmsg missing, what to do