Created
December 12, 2021 09:13
-
-
Save LinuxDevOpsGirl/a1707ade349013e580538739042ba85e to your computer and use it in GitHub Desktop.
Drupal Install LEMP Stack
This file contains 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
# Install NGINX | |
apt update | |
apt install nginx | |
sudo -i | |
apt install mariadb-server mariadb-client | |
mysql_secure_installation | |
apt update -y | |
apt upgrade -y | |
apt install php php-mysql php-fpm | |
systemctl stop apache2 | |
systemctl restart nginx | |
systemctl reload nginx | |
systemctl status nginx | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php composer.phar update | |
php composer.phar install | |
sudo mv composer.phar /usr/local/bin/composer | |
php -r "unlink('composer-setup.php');" | |
nginx -t | |
systemctl restart nginx | |
systemctl reload nginx | |
systemctl status nginx | |
Author
LinuxDevOpsGirl
commented
Dec 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment