Skip to content

Instantly share code, notes, and snippets.

@rafaismyname
Created July 22, 2014 00:08
Show Gist options
  • Save rafaismyname/07cbf2f9b3f73154b304 to your computer and use it in GitHub Desktop.
Save rafaismyname/07cbf2f9b3f73154b304 to your computer and use it in GitHub Desktop.
PCNTL workaround when it was not added as a php compiling flag (puphpet pcntl)
mkdir php
cd php
apt-get source php5
cd php5-<Your-Version-Here>/ext/pcntl
# Example: cd php5-5.5.9+dfsg/ext/pcntl
phpize
./configure
make
cp modules/pcntl.so /usr/lib/php5/<Where-Ever-PHP-IS-Installed-in>
# Example: cp modules/pcntl.so /usr/lib/php5/20121212/
nano sudo <Where-Ever-PHP-INI-IS-in>/php.ini
# Example: nano sudo /etc/php5/php.ini
# Remove pcntl functions from disabled_functions
# and add extension=pcntl.so to the file
sudo service apache2 stop
sudo service apache2 start
# Special thx for an Anonymous from IRC that helped me a lot with this!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment