Last active
January 21, 2020 18:58
-
-
Save ispguru/c33561a090dcc95efe47d882b4633b2a to your computer and use it in GitHub Desktop.
How to setup Wordpress on Ubuntu 18.04
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 | |
apt update && apt upgrade | |
sudo apt update && apt upgrade | |
apt install apache2 | |
sudo apt install apache2 | |
sudo systemctl status apache2 | |
sudo apt install mariadb-server mariadb-client | |
sudo mysql_secure_installation | |
sudo apt install php php-mysql | |
sudo vim /var/www/html/info.php | |
sudo nano /var/www/html/info.php | |
sudo mysql -u root -p | |
SUDO cd /tmp && wget https://wordpress.org/latest.tar.gz | |
sudo cd /tmp && wget https://wordpress.org/latest.tar.gz | |
cd /tmp && wget https://wordpress.org/latest.tar.gz | |
sudo tar -xvf latest.tar.gz | |
sudo cp -R wordpress /var/www/html/ | |
sudo chown www-data:www-data /var/www/html/wordpress/ | |
chmod -R 755 /var/www/html/wordpress/ | |
sudo chmod -R 755 /var/www/html/wordpress/ | |
sudo mkdir /var/www/html/wordpress/wp-content/uploads | |
sudo chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/ | |
#youtube link: https://youtu.be/jkpq2GnyhEI | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment