Skip to content

Instantly share code, notes, and snippets.

@norman-twin
Last active April 13, 2021 16:22
Show Gist options
  • Save norman-twin/f4477eda4dd38b1b68e662590fcd45a8 to your computer and use it in GitHub Desktop.
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
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