DO Ideas 2

Justin Ellingwood article on Ansible automation of a personal Ubuntu-Nginx-Mysql-PHPFPM-WPCLI environment

I think Justin Ellingwood is the best documentation writer from the writers I've seen so far in DigitalOcean.

I would be happy to see an article by Justin explaining didacticaly (as Justin so piquantly do), how to automate this typical environment:

ufw --force enable && ufw allow 22,25,80,443,9000/tcp
apt-get update -y && add-apt-repository ppa:certbot/certbot -y && apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get upgrade zip unzip tree unattended-upgrades sshguard postfix -y
apt-get upgrade nginx python-certbot-nginx mysql-server php-fpm php-mysql php-mbstring php-mcrypt -y
sed -i "s/post_max_size = .M/post_max_size = 200M/ ; s/upload_max_filesize = .M/upload_max_filesize = 200M/" /etc/php/*/fpm/php.ini
sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/" /etc/php/*/fpm/php.ini
# sed -i "s/# gzip_/gzip_/g" /etc/nginx/nginx.conf
curl > /usr/local/bin/wp
/etc/init.d/php*-fpm restart && systemctl restart nginx.service

  • Anonymous
  • Sep 11 2018
  • Attach files