Last active
May 10, 2020 22:15
-
-
Save aliemre/3272f19048c445829d4302dfff7215b4 to your computer and use it in GitHub Desktop.
Amazon Linux AMI 2 Installations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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