Last active
April 13, 2021 16:22
-
-
Save norman-twin/f4477eda4dd38b1b68e662590fcd45a8 to your computer and use it in GitHub Desktop.
New Server Initialization : PHP 7.4 | Nginx | Redis | Mongo | MySQL | Pear | Composer
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
sudo apt update; | |
sudo apt install nginx; | |
sudo add-apt-repository universe; | |
sudo apt install php-fpm php-mysql; | |
sudo apt install php-pear; | |
sudo apt install php7.4-dev; | |
sudo apt install php7.4-curl; | |
sudo apt install php7.4-mbstring; | |
sudo apt install composer; | |
sudo pecl install redis; | |
echo "extension=redis.so" | sudo tee -a /etc/php/7.4/fpm/php.ini; | |
echo "extension=redis.so" | sudo tee -a /etc/php/7.4/cli/php.ini; | |
sudo pecl install mongodb; | |
echo "extension=mongodb.so" | sudo tee -a /etc/php/7.4/fpm/php.ini; | |
echo "extension=mongodb.so" | sudo tee -a /etc/php/7.4/cli/php.ini; | |
sudo service nginx restart; | |
sudo service php7.4-fpm restart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment