Skip to content

Instantly share code, notes, and snippets.

Last active May 27, 2021 12:01
What would you like to do?
"Let's Hack!" Workshop Laravel Forge Recipes
# Tweak Services
sed -i 's/display_errors = On/display_errors = Off/g' /etc/php/7.4/fpm/php.ini
service php7.4-fpm restart
# Install wp-cli
curl -O
php wp-cli.phar --info
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
# Prepare
cd $
rm index.html
# Install WP
wp core download
wp config create --dbname=letshack --dbuser=letshack --dbpass=superSecretDBPassword
wp core install --url="https://$" --title="Let's Hack" --admin_user=valorin --admin_password=myLetsHackPassword
# Options
wp user update valorin --display_name=Stephen
wp option update blogdescription "WordSesh 2021 Workshop"
wp option update permalink_structure "/%postname%/"
# Copy manual plugin
touch /home/letshack/letshack.log
wget -O /home/letshack/
# Install Plugins
wp plugin activate letshack
wp plugin install --activate wordfence-login-security
wp plugin install --activate wps-hide-login --version=1.5.2
wp plugin install --activate wp-pagebuilder --version=1.2.3
wp plugin install --activate wp-central --version=1.4.7
# Add dummy posts
wp post generate --count=2000 --post_author=1 --post_date=2021-05-01-00-00-00
# Setup Bluey user
wp user create bluey --user_pass=dragon --role=contributor
wp post create --post_author=2 --post_content="Greetings WordSesh 2021! This is my first ever post. I'm so excited to be here." --post_title="Greetings WordSesh!" --post_status=publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment