Skip to content

Instantly share code, notes, and snippets.

@alpha1
Last active February 10, 2019 08:39
Show Gist options
  • Save alpha1/ad51a972acf3cb579924 to your computer and use it in GitHub Desktop.
Save alpha1/ad51a972acf3cb579924 to your computer and use it in GitHub Desktop.
Setup and Install Ubuntu for Wordpress
#REPLACED BY https://gist.github.com/alpha1/60864ec6bb95369cc2556c0165a51627
adduser NAME
#add a hostname
hostname MYSITE
sudo add-apt-repository ppa:certbot/certbot
sudo apt update && apt-get dist-upgrade;
sudo apt install openssh-server openssh-sftp-server ssh ssh-import-id ncurses-term git net-tools mc whois tree mtr htop unzip mosh curl p7zip fail2ban traceroute iotop clamav ssmtp mailutils cifs-utils software-propeties-common python-certbot-apache
#firewall
ufw enable && ufw allow 22 && ufw allow 80 && ufw allow 8080 && ufw allow 443 & ufw allow 5901 && ufw logging on
#fail2ban
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
#clamav
sudo freshclam
#wp-cli
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
#linode longview
python-software-properties software-properties-common
//http://askubuntu.com/questions/705880/how-to-install-php-7#705893
https://launchpad.net/~ondrej/+archive/ubuntu/apache2
sudo apt-get install apache2 mysql-server phpmyadmin
apt-get install libapache2-mod-php7.0 php7.0-curl php7.0-gd php7.0-json php7.0-mysql php7.0-bz2 php7.0-cli php7.0-imap
a2enmod rewrite deflate headers expire unique_id usertrack speling status userdir ssl http2
Git Config
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
http://wp-cli.org/
MariaDB:
https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-nyc&distro=Ubuntu&distro_release=wily--ubuntu_wily&version=10.1
SSH Keys
https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets
TODO: (S)FTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment