PCNTL Extension of PHP installed under Linux system

Source: Internet
Author: User

  1. First look at the directory where the Phpize command is located (ps: my directory/usr/bin/phpize)

    If not found, perform the installation

    Yum Install Php53_devel (PS: Please note your version)

    After the installation is complete. The Phpize command is generated

  2. Go to php.net download the appropriate version of the PHP source file

    Let's take php-5.3.17 as an example, after decompression, into the corresponding module

    CD Ext/pcntl

    #先执行phpize

    /usr/bin/phpize

    ./configure--with-php-config=/usr/bin/php-config (PS: Please specify the directory of the Php-config correctly) this is the point.

    #编译, installation

    Make && make install

  3. A pcntl.so file is generated when the compilation is complete. In the Model directory of PHP

    Edit/etc/php.ini, join

    Extension=pcntl.so

  4. Restart Apache

    Service httpd restart (different installation directory, command slightly different)

  5. 5

    Test whether the installation was successful

    <?php

    Echo Pcntl_fork ();

    ?>

    Output: 23165 (not necessarily the number, but it must be a number)

    For Liunx Novice, all the way, are tears

    From: http://jingyan.baidu.com/article/22a299b5cf30a79e19376a1f.html

PCNTL Extension of PHP installed under Linux system

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.