Skip to content

Instantly share code, notes, and snippets.

@jitheshkt
Last active December 5, 2020 10:32
Show Gist options
  • Select an option

  • Save jitheshkt/e45e01b5b7431c90dbfbcb0dbc76f538 to your computer and use it in GitHub Desktop.

Select an option

Save jitheshkt/e45e01b5b7431c90dbfbcb0dbc76f538 to your computer and use it in GitHub Desktop.

Revisions

  1. jitheshkt revised this gist Dec 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance

    ``` bash
    ``` unix
    sudo apt update
    sudo apt upgrade
    ```
  2. jitheshkt revised this gist Dec 5, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original 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
    ```
  3. jitheshkt renamed this gist Dec 5, 2020. 1 changed file with 10 additions and 9 deletions.
    19 changes: 10 additions & 9 deletions setup-ubuntu-server-for-php-fpm-apache.md → README.md
    Original 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*/

    Install apache
    ``` bash
    sudo apt install apache2 libapache2-mod-fcgid

    /*Install PHP*/

    ```
    Install PHP
    ``` bash
    sudo add-apt-repository ppa:ondrej/php
    sudo apt update

    /*We're installing all the basic php libs as well*/

    ```
    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*/
    That's it, `/var/www/html` is your root directory
  4. jitheshkt revised this gist Dec 5, 2020. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions setup-ubuntu-server-for-php-fpm-apache.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    <!--- Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance --->
    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
  5. jitheshkt revised this gist Dec 5, 2020. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions setup-ubuntu-server-for-php-fpm-apache.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    /**
    Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance
    **/
    <!--- Setup PHP 7.4 FPM with Apache on fresh Ubuntu Instance --->

    sudo apt update
    sudo apt upgrade
  6. jitheshkt created this gist Dec 5, 2020.
    23 changes: 23 additions & 0 deletions setup-ubuntu-server-for-php-fpm-apache.md
    Original 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*/