Pak Jiddat

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. PrivateTmp systemd option prevents access to tmp folder
  2. Fetching Gzip content with Php Curl
  3. Preventing browsers from caching content
  4. Displaying contents of an array in NXM html table
  5. Generate Url query strings using http_build_query
  6. Executing Php code using eval
  7. Fixing timeout problems with Php scripts on Plesk
  8. Php 7 error handling
  9. Check if session has been started in Php
  10. Installing memcached for Php 7
  11. What is the difference between a PHP interpreter and a PHP handler?
  12. Used to execute shell commands
  13. Getting http request method in php
  14. Set Cookie using Php
  15. Using array_rand and shuffle functions
  16. Using Usort function for sorting Arrays
  17. Php function isset returns false for null values
  18. Running Plesk auto reapir
  19. Using Rsync over custom SSH port
  20. Upgrading Postgresql from version 9.4 to 9.6
  21. Upgrading MySQL server from version 5.6 to 8.0
  22. Upgrading R from version 3.0 to 3.5
  23. Backing up and restoring LXD containers
  24. Resizing Linux root partitions without unmount on Google Cloud
  25. Running multiple versions of mailx command
  26. Getting /etc/rc.local file to work on Debian 9 (Stretch)
  27. Increasing number of concurrent connections for Proftp
  28. Changing ownership of symbolic link
  29. Configuring Apache to process html files as php
  30. Php server APIs
  31. Apache Multi Processing Modules (MPMs)
  32. Calculating the number of simultaneous connections supported by Apache
  33. Problem with copying large files to USB
  34. Importing Ldap configuration from file gives, "Wrong attributetype" error
  35. How To Change Account Passwords on an OpenLDAP Server
  36. Finding CPU usage using top command
  37. Monitoring RAM usage on server
  38. Format of crontab file
  39. Force grub2 to not use UUID
  40. Automate scp command using sshpass
  41. Viewing package information using yum history command
  42. Using PSCP command for copying files and directories
  43. Installing Docker on Debian Jessie
  44. Rocket Chat migration error
  45. Upgrading Rocket Chat to latest version
  46. Rocket Chat startup script
  47. Installing modules in Odoo 10.0
  48. Installing NodeJS on Ubuntu
  49. Installing W3C Markup Validator on Debian Jessie