Skip to content

Instantly share code, notes, and snippets.

@nmcv
Forked from eric1234/install_phpsh.sh
Created October 17, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcv/a1056c91cc4593ce1270 to your computer and use it in GitHub Desktop.
Save nmcv/a1056c91cc4593ce1270 to your computer and use it in GitHub Desktop.
Install phpsh on Ubuntu
# https://gist.github.com/eric1234/7324795
# Make sure git is installed
apt-get install -y git
# Remove functions that phpsh needs from config.
sed -i 's/pcntl_signal,//g' /etc/php5/cli/php.ini
sed -i 's/pcntl_fork,//g' /etc/php5/cli/php.ini
sed -i 's/pcntl_wait,//g' /etc/php5/cli/php.ini
# Install source code
cd /usr/local/src
git clone https://github.com/uncreative/phpsh.git
# Build and install
cd phpsh
python setup.py build
python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment