Last active
March 4, 2019 23:15
-
-
Save jboulhous/53c0d80b551c27a3516addc496d1ef1e to your computer and use it in GitHub Desktop.
prepare wordpress on c9
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
# Do not run this script directly. | |
# instead copy/paste one or several lines. | |
# be carefull to wp-cli prompt mode. | |
# command ending with --prompt must be run alone. | |
# wp-cli | |
# Download wp-cli | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
# Install wp-cli by running: | |
php wp-cli.phar --info | |
# Make it executable | |
chmod +x wp-cli.phar | |
# Move to path | |
sudo mv wp-cli.phar /usr/local/bin/wp | |
# Test it | |
wp --info | |
# phpmyadmin | |
# Install it | |
phpmyadmin-ctl install | |
# install wordpress (prompt mode) | |
# may be improve this a little bit using c9 env vars | |
wp core install --prompt | |
# update wordpress | |
wp core update | |
# remove default plugins | |
wp plugin delete akismet hello | |
# update themes | |
wp theme delete twentyfifteen twentysixteen | |
wp theme update twentyseventeen | |
# create child theme (prompt mode) | |
wp scaffold child-theme --prompt | |
# update php | |
# https://gist.github.com/artemsky/2fc432c1561bd2a7c57e47fe5e0c88d7 | |
sudo apt-get install python-software-properties -y | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
sudo apt-get install php7.3 php-pear php7.3-curl php7.3-dev php7.3-gd php7.3-mbstring php7.3-zip php7.3-mysql php7.3-xml | |
sudo apt-get install libapache2-mod-php7.3 -y | |
sudo a2dismod php5 | |
sudo a2enmod php7.3 | |
sudo service apache2 restart | |
# ;-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment