Created
July 22, 2014 00:08
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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