Auto-compile and install Nginx and PHP 7.2 [UBUNTU 17.04][CENTOS 7]

I have written a couple of small scripts which compile, install and configure Nginx and PHP 7.2 RC5

If you would prefer to install these manually I have guides for compiling Nginx and PHP.

Please Note: These scripts will only work on a fresh install, Please do not try this on an already configured Nginx/PHP install. This WILL break your configuration and give you a headache.

How to use the scripts:

For Ubuntu

wget https://trader418.me/scripts/ubuntunginx.sh
wget https://trader418.me/scripts/ubuntunginxphp.sh
chmod a+x ./ubuntunginx.sh
chmod a+x ./ubuntunginxphp.sh
sudo ./ubuntunginx.sh #Compile and install Nginx
sudo ./ubuntunginxphp.sh #Compile and install PHP

For CentOS
Please Note: This will flush your IPTables rules, please make sure you have a backup if you have custom rules.

wget https://trader418.me/scripts/centnginx.sh
wget https://trader418.me/scripts/centnginxphp.sh
chmod a+x ./centnginx.sh
chmod a+x ./centnginxphp.sh
sudo ./centnginx.sh #Compile and install Nginx
sudo ./centnginxphp.sh #Compile and install PHP

I urge anyone who uses these to check the code for the scripts before executing these as sudo, anything ran as sudo should be trusted by the person running it. I take no responsibility for the running of these scripts, they are provided “as-is”

You May Also Like

About the Author: trader418

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *