Pak Jiddat - Innovative Software Services

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Installing latest version of Php

Created On: 28 Jun, 2018: 16:44:17 - Tags : php | server management | software installation

Url: https://deb.sury.org

Php is a popular programming language commonly used for building web based applications. Most Linux distributions provide Php out of the box. However the version of Php in most cases is not the current stable version. To install the latest stable version of Php, we need to use a third part package repository such as deb.sury.org/. To use this repository we need to follow the instructions given on: https://packages.sury.org/php/README.txt. After that we can install the latest version of Php. For example to install Php 7.2, we need to issue the commands: apt-get update followed by apt-get install Php7.2.

To revert to the version of Php provided by the operating system, we need to remove the file: /etc/apt/sources.list.d/php.list. We also need to remove the package singing key for deb.sury. Next we need to run the commands: apt-get update followed by apt-get remove Php7.2. After that we need to install the Php package using: apt-get install php. This will install the version of Php that is provided by the operating system.


Related Articles

  1. Preventing browsers from caching content
  2. Displaying contents of an array in NXM html table
  3. Generate Url query strings using http_build_query
  4. Executing Php code using eval
  5. Fixing timeout problems with Php scripts on Plesk
  6. Php 7 error handling
  7. Check if session has been started in Php
  8. Installing memcached for Php 7
  9. What is the difference between a PHP interpreter and a PHP handler?
  10. Used to execute shell commands
  11. Getting http request method in php
  12. Set Cookie using Php
  13. Using array_rand and shuffle functions
  14. Using Usort function for sorting Arrays
  15. Php function isset returns false for null values
  16. Using Rsync over custom SSH port
  17. Upgrading Postgresql from version 9.4 to 9.6
  18. Upgrading MySQL server from version 5.6 to 8.0
  19. Upgrading R from version 3.0 to 3.5
  20. Backing up and restoring LXD containers
  21. Resizing Linux root partitions without unmount on Google Cloud
  22. Running multiple versions of mailx command
  23. Getting /etc/rc.local file to work on Debian 9 (Stretch)
  24. Increasing number of concurrent connections for Proftp
  25. Changing ownership of symbolic link
  26. Configuring Apache to process html files as php
  27. Php server APIs
  28. Apache Multi Processing Modules (MPMs)
  29. Calculating the number of simultaneous connections supported by Apache
  30. Problem with copying large files to USB
  31. Monitoring RAM usage on server
  32. Finding CPU usage using top command
  33. Format of crontab file
  34. Force grub2 to not use UUID
  35. Automate scp command using sshpass