Created
May 8, 2020 20:34
-
-
Save robsouth84/91f811e0dc3bb236aad22ad941771596 to your computer and use it in GitHub Desktop.
This file contains 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
#! /bin/bash | |
echo '## update..' | |
sudo apt-get update -y | |
echo '## intalling apache..' | |
sudo apt-get install apache2 -y | |
echo '## intalling php..' | |
sudo apt-get install php5 libapache2-mod-php5 -y | |
echo '## intalling mysql..' | |
echo '##..................' | |
echo '## you will be asked to enter a password..' | |
echo '## pick a good one...' | |
echo '## keep it in a safe place..' | |
sudo apt-get install mysql-server php5-mysql -y | |
sudo service apache2 restart | |
cd /var/www/html/ | |
sudo mkdir wp | |
cd wp | |
sudo wget http://wordpress.org/latest.tar.gz | |
sudo tar xzf latest.tar.gz | |
sudo mv wordpress/* . | |
sudo rm -rf wordpress latest.tar.gz | |
sudo chown -R www-data: . | |
echo '### display IP' | |
ifconfig | |
echo '### navigate to [yourIP]/wp now to setup your site' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment