Multiple PHP Versions with Apache2 in Ubuntu 20

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024
  • How to install multiple PHP versions in Linux Ubuntu 20.04 and switch between them in both cli and apache web server.
    #php #apache #multiplephp #ubuntu20
    commands used
    to check php version
    php -v
    to list out all available php version
    sudo update-alternatives --config php
    to enable php version mode in apache with version number
    sudo a2enmod php7.4
    to disable php version mode in apache with version number
    sudo a2dismod php7.4
    to restart apache
    sudo service apache2 restart

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

  • @josetorresorozco1337
    @josetorresorozco1337 3 месяца назад

    good video bro!!!!!

  • @zhenniqi136
    @zhenniqi136 7 месяцев назад

    Nice job brother,干的漂亮。

  • @mattflatin5181
    @mattflatin5181 7 месяцев назад

    THANK YOU!

  • @DeepakKumar-vs2wv
    @DeepakKumar-vs2wv 11 месяцев назад

    Good Explanation Bro

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

    👏

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

    sudo apt install php7.4
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Package php7.4 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'php7.4' has no installation candidate

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

      You can look at this answer : askubuntu.com/a/1447491

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

      @@webdevcloud1
      thanks
      but i using ppa put not work
      can you recommend way to use docker instead all that because my laravel app is old and i will go to install docker.