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


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 To use this repository we need to follow the instructions given on: 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. Upgrading Postgresql from version 9.4 to 9.6
  2. Upgrading MySQL server from version 5.6 to 8.0
  3. Upgrading R from version 3.0 to 3.5
  4. Backing up and restoring LXD containers
  5. Resizing Linux root partitions without unmount on Google Cloud
  6. Running multiple versions of mailx command
  7. Getting /etc/rc.local file to work on Debian 9 (Stretch)
  8. Increasing number of concurrent connections for Proftp
  9. Changing ownership of symbolic link
  10. Configuring Apache to process html files as php
  11. Php server APIs
  12. Apache Multi Processing Modules (MPMs)
  13. Calculating the number of simultaneous connections supported by Apache
  14. Problem with copying large files to USB
  15. Monitoring RAM usage on server
  16. Finding CPU usage using top command
  17. Format of crontab file
  18. Force grub2 to not use UUID
  19. Using PSCP command for copying files and directories
  20. Installing Docker on Debian Jessie
  21. Upgrading Rocket Chat to latest version
  22. Rocket Chat startup script
  23. Rocket Chat migration error
  24. Installing modules in Odoo 10.0
  25. Installing NodeJS on Ubuntu
  26. Installing W3C Markup Validator on Debian Jessie
  27. Displaying contents of an array in NXM html table
  28. Generate Url query strings using http_build_query
  29. Executing Php code using eval
  30. Fixing timeout problems with Php scripts on Plesk
  31. Php 7 error handling
  32. Check if session has been started in Php
  33. Installing memcached for Php 7
  34. What is the difference between a PHP interpreter and a PHP handler?
  35. Getting http request method in php
  36. Used to execute shell commands
  37. Set Cookie using Php
  38. Using Usort function for sorting Arrays
  39. Using array_rand and shuffle functions
  40. Php function isset returns false for null values