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