Skip to content

Instantly share code, notes, and snippets.

@thanhoangxuannghiep
Last active March 13, 2019 03:25
Show Gist options
  • Select an option

  • Save thanhoangxuannghiep/3e10e756add3a906fbcc496670ce1c50 to your computer and use it in GitHub Desktop.

Select an option

Save thanhoangxuannghiep/3e10e756add3a906fbcc496670ce1c50 to your computer and use it in GitHub Desktop.

Revisions

  1. thanhoangxuannghiep revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHP-NGINX-ON-UBUNTU.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ I'm sure that you can find many documents or topic talk about this. However, I w
    `apt-get update && apt-get install -y nginx`

    Then, you can check status of your web server with command `systemctl status nginx`. If you see status is running, you can access the default Nginx landing page right now. Now, open your browser and enter `localhost` in your address bar. You are in default nginx landing page.
    On Ubuntu, nginx auto declares sub-folders for you, You don't need run mkdir command as MacOS. In folder `sites-available`, you can see file default. You only need to edit this file to run your site. About configuration, You can refer the topic I have mentioned above.
    On Ubuntu, nginx auto declares sub-folders for you, You don't need to run mkdir command as MacOS. In folder `sites-available`, you can see file default. You only need to edit this file to run your site. About configuration, You can refer the topic I have mentioned above.

    # 2. Install PHP-FPM
    Try to run following these commands:
  2. thanhoangxuannghiep revised this gist Sep 18, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHP-NGINX-ON-UBUNTU.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ add-apt-repository ppa:ondrej/php
    apt-get -y update
    apt-get install -y php7.0-fpm php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv php7.0-soap
    ```
    Okay, Your install is done.
    Okay, You have installed successfully.
  3. thanhoangxuannghiep revised this gist Sep 18, 2018. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion PHP-NGINX-ON-UBUNTU.md
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,17 @@ After created a topic talk about [Install Nginx, PHP with homebrew on MacOS](htt
    # 1. Install Nginx
    I'm sure that you can find many documents or topic talk about this. However, I want to create specific topic for myself. This is the way I remember any things after self-learing. Now, you can type following 2 commands

    `sudo apt-get update && sudo apt-get install -y nginx`
    `apt-get update && apt-get install -y nginx`

    Then, you can check status of your web server with command `systemctl status nginx`. If you see status is running, you can access the default Nginx landing page right now. Now, open your browser and enter `localhost` in your address bar. You are in default nginx landing page.
    On Ubuntu, nginx auto declares sub-folders for you, You don't need run mkdir command as MacOS. In folder `sites-available`, you can see file default. You only need to edit this file to run your site. About configuration, You can refer the topic I have mentioned above.

    # 2. Install PHP-FPM
    Try to run following these commands:
    ```
    apt-get -y update
    add-apt-repository ppa:ondrej/php
    apt-get -y update
    apt-get install -y php7.0-fpm php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv php7.0-soap
    ```
    Okay, Your install is done.
  4. thanhoangxuannghiep created this gist Sep 18, 2018.
    7 changes: 7 additions & 0 deletions PHP-NGINX-ON-UBUNTU.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    After created a topic talk about [Install Nginx, PHP with homebrew on MacOS](https://gist.github.com/thanhoangxuannghiep/c278ea1d9c9e7355c0973108ab11523f). I want to create small topic talk about PHP and Nginx on Ubuntu. I will show steps to install and configuration

    # 1. Install Nginx
    I'm sure that you can find many documents or topic talk about this. However, I want to create specific topic for myself. This is the way I remember any things after self-learing. Now, you can type following 2 commands

    `sudo apt-get update && sudo apt-get install -y nginx`