Workerman Required PHP module POSIX, Pcntl, SYSVSHM, sysvmsg missing, what to do

Source: Internet
Author: User
Tags pear posix

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.