title: How to install older PHP version in XAMPP on Ubuntu 16.04?
body: <p>I'm trying to install <strong>Magento</strong> on my system, But it gives me an error that the <code>PHP</code> version that I have is newer and <strong>Magento</strong> is not supported that version. So now I'm trying to downgrade my <code>PHP</code> version from <em>XAMPP</em> that I'm installed on <em>Ubuntu 16.04</em>.</p>
  
  <p><strong>Error :</strong></p>
  
  <blockquote>
    <p>PHP Version Check Your PHP version is 7.1.1. The required PHP version
    is ~5.6.5|7.0.2|7.0.4|~7.0.6. Hide detail
    Download and install PHP from www.php.net using this PHP
    Documentation.
    For additional assistance, contact your hosting provider.</p>
  </blockquote>
  
  <p>But I'm confuse how to do this. Is it good to downgrade it or I've to install new <strong>PHP in XAMPP</strong>. </p>
  
  <p>I know this question is not belongs to stackoverflow, but I'm googled it and I don't get any proper output, so I post this question here. </p>
  
  <p><em>There are some <strong>links</strong> that I referred :</em></p>
  
  <p><a href="https://askubuntu.com/questions/412467/how-can-i-install-different-versions-of-php-in-xampp">https://askubuntu.com/questions/412467/how-can-i-install-different-versions-of-php-in-xampp</a></p>
  
  <p><a href="https://askubuntu.com/questions/109404/how-do-i-install-different-upgrade-or-downgrade-php-version-in-still-supported">https://askubuntu.com/questions/109404/how-do-i-install-different-upgrade-or-downgrade-php-version-in-still-supported</a></p>
  
  <p><a href="https://github.com/phpbrew/phpbrew" rel="nofollow noreferrer">https://github.com/phpbrew/phpbrew</a></p>
  
  <p><a href="https://tecadmin.net/install-php5-on-ubuntu/#" rel="nofollow noreferrer">https://tecadmin.net/install-php5-on-ubuntu/#</a></p>
  
  <p>These links are all about installing two or more PHP versions in Ubuntu but I'm not get how can I done it in XAMP on ubuntu 16.04. Please any kind of help is appreciated.</p>