Skip to content

Instantly share code, notes, and snippets.

@joshrhykerd
joshrhykerd / nginx.default.conf
Created October 11, 2017 12:20 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
@joshrhykerd
joshrhykerd / Flush Memcached
Created June 19, 2017 10:00
Command to flush a memcached server
echo 'flush_all' | nc localhost 11211