Level 8
You'll need to build from source since MAMP doesn't ship with this extension. Luckily, it's actually not too hard.
- Download the PHP source code.
- 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.
- Once you've got the source, go into
php-src/ext/pcntland then run thephpizecommand. Note that you'll also need to have Xcode and related tools installed. - You should then be able to run
make && make install. This will build the extension and throw it into your extensions directory. - Now, edit the
php.iniand enable the module like you would any of the other extensions.
1 like