Install PHP 7.4 over PHP 8.1 in Laragon | Web Development with Laragon



Install PHP 7.4 over PHP 8.1 in Laragon | Web Development with Laragon

Install PHP 7.4 over PHP 8.1 in Laragon | Web Development with Laragon

In this video, you will learn how to install PHP version 7.4 over PHP version 8.1 in Laragon. Many projects still require lower versions of PHP, so it’s important to have them available on your system.

Firstly, we will check the currently available PHP versions in Laragon. You will see that only PHP 8.1 is available at the moment. To add version 7.4, you need to download the PHP version from windows.php.net. Once downloaded, copy or move the zip file to the Laragon installation directory, bin and PHP. Unzip the file with the same name and remove the zip file.

Both PHP versions 7.4 and 8.1 will now be available in Laragon, and you can switch between them whenever required. To switch the PHP version for a specific project, go to the Laragon UI, click on Menu, click on PHP, and select PHP version 7.4. However, you will need to reload or restart the Apache service for the changes to take effect.

Once you have restarted the Apache service, check if the PHP version has been successfully downgraded to 7.4 for the project by typing the test project URL followed by slash info.php. You should now be able to use both PHP versions in Laragon without any issues.

So, that’s how you can install PHP version 7.4 over PHP version 8.1 in Laragon and switch between them. If you found this video helpful, please don’t forget to like, comment, and share it. And don’t forget to subscribe to our channel for more informative videos.