Created
October 21, 2024 06:03
-
-
Save jacopen/24bd7f58837722ad1019eb4a4c5f563b to your computer and use it in GitHub Desktop.
Setup WordPress
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
#!/bin/bash | |
sudo apt update | |
sudo apt install -y apache2 php php-mbstring php-xml php-mysqli | |
wget http://ja.wordpress.org/latest-ja.tar.gz -P /tmp/ | |
tar zxvf /tmp/latest-ja.tar.gz -C /tmp | |
sudo rm -rf /var/www/html/* | |
sudo cp -r /tmp/wordpress/* /var/www/html/ | |
sudo chown www-data:www-data -R /var/www/html | |
sudo systemctl enable apache2.service | |
sudo systemctl restart apache2.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment