Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hemantadsl's avatar

Install pcntl ext

Hi i have MAMP, php 7.1.8 in my mac, any one have idea how to install and enable pcntl extension so that i can run horizon! Please help. Thanks.

0 likes
4 replies
NickVahalik's avatar
Level 8

You'll need to build from source since MAMP doesn't ship with this extension. Luckily, it's actually not too hard.

  1. Download the PHP source code.
  2. Make sure you've got the MAMP bin directory in your path. You'll need the extra tools it has in order to do this.
  3. Once you've got the source, go into php-src/ext/pcntl and then run the phpize command. Note that you'll also need to have Xcode and related tools installed.
  4. You should then be able to run make && make install. This will build the extension and throw it into your extensions directory.
  5. Now, edit the php.ini and enable the module like you would any of the other extensions.
1 like
germancin's avatar

This is not clear enough. Could you elaborate what is that phpize and how to run it? also php-src .. where is that folder?

Please or to participate in this conversation.