Last active
March 13, 2019 03:25
-
-
Save thanhoangxuannghiep/3e10e756add3a906fbcc496670ce1c50 to your computer and use it in GitHub Desktop.
Revisions
-
thanhoangxuannghiep revised this gist
Mar 13, 2019 . 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 @@ -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 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: -
thanhoangxuannghiep revised this gist
Sep 18, 2018 . 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 @@ -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, You have installed successfully. -
thanhoangxuannghiep revised this gist
Sep 18, 2018 . 1 changed file with 13 additions 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 @@ -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 `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. -
thanhoangxuannghiep created this gist
Sep 18, 2018 .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,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`