Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
debian_common [2019/04/21 16:17] โ [Basic commands 101] Jรบne Park | debian_common [2019/06/08 03:11] โ [Upgrade php 7.x] Jรบne Park | ||
---|---|---|---|
Line 388: | Line 388: | ||
---- | ---- | ||
+ | ===== Upgrade php 7.x ===== | ||
+ | Append additional source for php7.x latest, | ||
+ | |||
+ | <code bash> | ||
+ | wget -q https:// | ||
+ | echo "deb https:// | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get update | ||
+ | </ | ||
+ | |||
+ | <code text> | ||
+ | Reading package lists... Done | ||
+ | E: The method driver / | ||
+ | N: Is the package apt-transport-https installed? | ||
+ | E: Failed to fetch https:// | ||
+ | E: Some index files failed to download. They have been ignored, or old ones used instead. | ||
+ | </ | ||
+ | |||
+ | When it comes to this errors, install additional packages for update, | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install ca-certificates apt-transport-https | ||
+ | </ | ||
+ | |||
+ | Install php with latest version | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-opcache php7.2-curl php7.2-mbstring php7.2-mysql php7.2-zip php7.2-xml | ||
+ | </ | ||
+ | |||
+ | To verify the installation is completed run the following command: | ||
+ | |||
+ | <code bash> | ||
+ | php -v | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ===== Nginx repository ===== | ||
+ | |||
+ | Install the prerequisites: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install curl gnupg2 ca-certificates lsb-release | ||
+ | </ | ||
+ | |||
+ | To set up the apt repository for stable nginx packages, run the following command: | ||
+ | <code bash> | ||
+ | echo "deb http:// | ||
+ | | sudo tee / | ||
+ | </ | ||
+ | |||
+ | If you would like to use mainline nginx packages, run the following command instead: | ||
+ | |||
+ | <code bash> | ||
+ | echo "deb http:// | ||
+ | | sudo tee / | ||
+ | </ | ||
+ | |||
+ | Next, import an official nginx signing key so apt could verify the packages authenticity: | ||
+ | |||
+ | <code bash> | ||
+ | curl -fsSL https:// | ||
+ | </ | ||
+ | |||
+ | Verify that you now have the proper key: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-key fingerprint ABF5BD827BD9BF62 | ||
+ | </ | ||
+ | |||
+ | The output should contain the full fingerprint '' | ||
+ | |||
+ | <code txt> | ||
+ | pub | ||
+ | 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 | ||
+ | uid [ unknown] nginx signing key < | ||
+ | </ | ||
+ | |||
+ | To install nginx, run the following commands: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt update | ||
+ | sudo apt install nginx | ||
+ | </ | ||
+ | |||
+ | ---- | ||
==== Basic commands 101 ==== | ==== Basic commands 101 ==== | ||
Line 487: | Line 576: | ||
Both the standard output and standard error streams will be copied to the file while still being visible in the terminal. If the file already exists, the new data will get appended to the end of the file. | Both the standard output and standard error streams will be copied to the file while still being visible in the terminal. If the file already exists, the new data will get appended to the end of the file. | ||
+ | |||
+ | ---- | ||
+ | === Find string(s) in files === | ||
+ | |||
+ | <code bash> | ||
+ | find / | ||
+ | </ | ||
---- | ---- |