Тёмный

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

Подписаться
Просмотров 6 тыс.
% 54

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.
PHP 7.4 download link:- www.php.net/releases/
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.

Наука

Опубликовано:

 

13 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@ragadiveluka
@ragadiveluka 9 месяцев назад
The PHP 7.4 installer is not available to download. Where could I find it?
@Enkripsan
@Enkripsan 9 месяцев назад
You can download it from here. www.php.net/releases/
@traneo
@traneo 7 месяцев назад
When you check the PHP version at the command prompt (php --version), the version remains unchanged. When I look at the environment variables, they have changed, but in the command prompt they do not. The version for Apache etc. has been changed. Do you know the cause?
@Enkripsan
@Enkripsan 7 месяцев назад
That's because you need to update alternatives. Search about this and apply the command. After you update the alternatives, you will get it changed in the command prompt as well.
@laravelearner
@laravelearner Год назад
Straight to the Point. Thanks
@Enkripsan
@Enkripsan Год назад
Most welcome and thanks for your comment
@RahulKumar-dm5zy
@RahulKumar-dm5zy Год назад
how to run both php 7.4 and 8.1 same time
@Enkripsan
@Enkripsan Год назад
Thanks for your query. I will check if it's possible or not and get back to you.
@paulohenriquemenezes4025
@paulohenriquemenezes4025 7 месяцев назад
Not possible.
@Rx512xr
@Rx512xr Год назад
it's gone :(
@asfiaaiman3699
@asfiaaiman3699 7 месяцев назад
Thank you
@Enkripsan
@Enkripsan 7 месяцев назад
Most welcome!