Skip to content

Instantly share code, notes, and snippets.

@aliemre
Last active May 10, 2020 22:15
Show Gist options
  • Save aliemre/3272f19048c445829d4302dfff7215b4 to your computer and use it in GitHub Desktop.
Save aliemre/3272f19048c445829d4302dfff7215b4 to your computer and use it in GitHub Desktop.
Amazon Linux AMI 2 Installations
# MySQL
sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo yum install mysql-community-server
# MySQL Root Password
sudo grep "temporary password" /var/log/mysqld.log
# Nginx
amazon-linux-extras install nginx1
# Nginx Conf for PHP-FPM
server {
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php-fpm/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
# PHP 7.3 & Epel Rep
amazon-linux-extras install php7.3 epel
# PHP Modules
sudo yum install php-xml php-mbstring php-gd php-zip
# Services
sudo service php-fpm start
sudo service nginx start
sudo service mysqld start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment