Run Multiple PHP or Xampp in Linux

Steps 💡

    1. Go to – Downloads Xampp for Linux
    2. Download .run file of Xampp of your choice (in linux name of xampp is lampp)
    3. Open a terminal (Applications->Accessories->Terminal).
    4. enter cd /home/user/Downloads
    5. enter chmod +x lampp.run
    6. enter ./lampp.run
    7. Finish installation and goto /opt/lampp and rename it to ‘lampp-version’
    8. Then run install another .run file of lampp same as above lampp
    9.  Check your PHP version using the command :=  php  -v
    10. Create a symlink for lampp using these commands  sudo ln -s lampp-version/ lampp
    11. For the change php version remove old symlink using these commands  sudo rm -r lampp
    12. Create a new symlink for another version using the above commands and then check PHP version again with command = php -v
    13. Your version is changed! 🙂 😎 ❤

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s