Last active
December 2, 2020 16:40
-
-
Save marianmirzacu/df90954502228d6533c611c38132e8ea to your computer and use it in GitHub Desktop.
LEMP stack for Ubuntu 20.04
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
apt update && apt -y upgrade && apt -y dist-upgrade && apt -y autoremove | |
apt install software-properties-common nginx git htop zip unzip curl nload | |
add-apt-repository ppa:ondrej/php | |
apt update | |
apt install mariadb-server memcached php-memcached php7.4-cli php7.4-fpm php7.4-mysql php7.4-curl php7.4-xml php7.4-mbstring php7.4-gd php7.4-intl | |
nano /etc/php/7.4/fpm/php.ini | |
# FROM "cgi.fix_pathinfo=1" TO "cgi.fix_pathinfo=0" | |
service php7.4-fpm restart | |
mysql_secure_installation | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
mysql -u root -p | |
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'PASSWORD'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment