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
  • 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