Last active
August 31, 2017 04:37
-
-
Save HostOnNet/76e61cdef8a42ae969ab2dd4e278e2c0 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
1. Install Apache | |
2. Install MySQL | |
Above steps can be done with following scripts | |
wget https://raw.githubusercontent.com/HostOnNet/server-setup/master/ubuntu/1-basic-tools.sh | |
sh ./1-basic-tools.sh | |
wget https://raw.githubusercontent.com/HostOnNet/server-setup/master/ubuntu/2-apache-php-mysql.sh | |
sh ./2-apache-php-mysql.sh | |
You can download and check script to see what is in it, if you need to know exact steps. | |
3. Install SSL | |
Follow instructions at | |
https://blog.hostonnet.com/letsencrypt | |
You need domain pointed to ec2 server before running these. | |
4. Create MySQL user | |
The command is | |
GRANT ALL ON *.* TO 'USER_NAME_HERE'@'localhost' IDENTIFIED BY 'PASSWORD_HERE'; | |
Refer | |
https://blog.hostonnet.com/mysql-user | |
5. Download and install wordpress. | |
cd /var/www/ | |
rm -rf html | |
wget https://wordpress.org/latest.tar.gz | |
tar xvf latest.tar.gz | |
mv wordpress html | |
Now you need to SFTP into the site using filezilla. Then rename file wp-config-sample.php to wp-config.php | |
Edit wp-config.php update db login details, and security code on this file. | |
Now visit your web site, you will be able to install wordpress. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment