How to install php5 and php7 on Ubuntu 18.04 LTS

This article describes a step by step procedure to install PHP versions 5.6 and 7.2 on your Ubuntu. After installing the two versions, we will also explain how you can disable one version and enable another version to be treated as the default version by the system. Learn More

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.