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

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • 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/re...
    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.
  • НаукаНаука

Комментарии • 12

  • @laravelearner
    @laravelearner Год назад +1

    Straight to the Point. Thanks

    • @Enkripsan
      @Enkripsan  Год назад +1

      Most welcome and thanks for your comment

  • @ragadiveluka
    @ragadiveluka 9 месяцев назад +1

    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/

  • @RahulKumar-dm5zy
    @RahulKumar-dm5zy Год назад +1

    how to run both php 7.4 and 8.1 same time

  • @traneo
    @traneo 6 месяцев назад

    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  6 месяцев назад

      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.

  • @asfiaaiman3699
    @asfiaaiman3699 7 месяцев назад +1

    Thank you

  • @Rx512xr
    @Rx512xr Год назад

    it's gone :(