Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandoaleman/f77c310a5a81a7cb728637b8d8ee17b4 to your computer and use it in GitHub Desktop.
Save fernandoaleman/f77c310a5a81a7cb728637b8d8ee17b4 to your computer and use it in GitHub Desktop.
How to install PHP 5.6 on Ubuntu 22.04

How To Install PHP 5.6 on Ubuntu 22.04

Add php apt repository

$ sudo add-apt-repository ppa:ondrej/php

Update repository index

$ sudo apt update

Install any pending updates

$ sudo apt upgrade

Install PHP 5.6

$ sudo apt install -y php5.6

Confirm PHP 5.6 is installed

$ php -v

Visit https://vitux.com/how-to-install-php5-php8-on-ubuntu/ for more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment