Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install WP-CLI, Composer and Imagick on Digital Ocean WordPress Droplet (Ubuntu 16)
echo "Installing WP-CLI...";
curl -O
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
echo "Installing Composer...";
sudo apt-get update;
sudo apt-get install curl php-cli php-mbstring git unzip -y;
cd ~;
php -r "copy('', 'composer-setup.php');"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
echo "Installing Imagick PHP Extension";
sudo apt-get install php-imagick -y;
cd /var/www/html;
wp --info --allow-root;
composer --version;

This comment has been minimized.

Copy link
Owner Author

craigiswayne commented Jan 29, 2019


sh -c "$(curl -fsSL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.