Skip to content

Instantly share code, notes, and snippets.

@jacopen
Created October 21, 2024 06:03
Show Gist options
  • Save jacopen/24bd7f58837722ad1019eb4a4c5f563b to your computer and use it in GitHub Desktop.
Save jacopen/24bd7f58837722ad1019eb4a4c5f563b to your computer and use it in GitHub Desktop.
Setup WordPress
#!/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