Last active
December 5, 2020 10:32
-
-
Save jitheshkt/e45e01b5b7431c90dbfbcb0dbc76f538 to your computer and use it in GitHub Desktop.
Revisions
-
jitheshkt revised this gist
Dec 5, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance ``` unix sudo apt update sudo apt upgrade ``` -
jitheshkt revised this gist
Dec 5, 2020 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,9 @@ sudo apt update We're installing all the basic php libs as well ``` bash sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-gd php7.4-imap php7.4-mbstring php7.4-soap php7.4-zip php7.4-bcmath php7.4-intl php7.4-json php7.4-opcache php7.4-readline ``` Lets know Apache that we're having PHP in the house ``` bash sudo a2enmod actions fcgid alias proxy_fcgi setenvif sudo a2enconf php7.4-fpm ``` -
jitheshkt renamed this gist
Dec 5, 2020 . 1 changed file with 10 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,19 +4,20 @@ Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance sudo apt update sudo apt upgrade ``` Install apache ``` bash sudo apt install apache2 libapache2-mod-fcgid ``` Install PHP ``` bash sudo add-apt-repository ppa:ondrej/php sudo apt update ``` We're installing all the basic php libs as well ``` bash sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-gd php7.4-imap php7.4-mbstring php7.4-soap php7.4-zip php7.4-bcmath php7.4-intl php7.4-json php7.4-opcache php7.4-readline sudo a2enmod actions fcgid alias proxy_fcgi setenvif sudo a2enconf php7.4-fpm ``` That's it, `/var/www/html` is your root directory -
jitheshkt revised this gist
Dec 5, 2020 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,9 @@ Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance ``` bash sudo apt update sudo apt upgrade ``` /*Install apache*/ sudo apt install apache2 libapache2-mod-fcgid -
jitheshkt revised this gist
Dec 5, 2020 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,4 @@ <!--- Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance ---> sudo apt update sudo apt upgrade -
jitheshkt created this gist
Dec 5, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ /** Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance **/ sudo apt update sudo apt upgrade /*Install apache*/ sudo apt install apache2 libapache2-mod-fcgid /*Install PHP*/ sudo add-apt-repository ppa:ondrej/php sudo apt update /*We're installing all the basic php libs as well*/ sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-gd php7.4-imap php7.4-mbstring php7.4-soap php7.4-zip php7.4-bcmath php7.4-intl php7.4-json php7.4-opcache php7.4-readline sudo a2enmod actions fcgid alias proxy_fcgi setenvif sudo a2enconf php7.4-fpm /*That's it, /var/www/html is your root directory*/