debian_common

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
debian_common [2019/04/22 15:29] โ€“ [Basic commands 101] Jรบne Parkdebian_common [2019/05/27 09:11] โ€“ [Fetch error during update] Jรบne Park
Line 388: Line 388:
  
 ----  ---- 
 +===== Upgrade php 7.x ===== 
  
 +Append additional source for php7.x latest,
 + 
 +<code bash> 
 +wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
 +echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
 +</code>
 +
 +<code bash> 
 +sudo apt-get update
 +</code> 
 +
 +<code text> 
 +Reading package lists... Done
 +E: The method driver /usr/lib/apt/methods/https could not be found.
 +N: Is the package apt-transport-https installed?
 +E: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease
 +E: Some index files failed to download. They have been ignored, or old ones used instead.
 +</code> 
 +
 +When it comes to this errors, install additional packages for update, 
 +
 +<code bash> 
 +sudo apt-get install ca-certificates apt-transport-https
 +<code> 
 +
 +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
 +</code> 
 +
 +To verify the installation is completed run the following command:
 +
 +<code bash> 
 +php -v
 +</code> 
 + 
 +
 +----
 ==== Basic commands 101 ====  ==== Basic commands 101 ==== 
  
  • debian_common
  • Last modified: 2024/04/18 08:58
  • by Jรบne Park