Welcome to Centmin Mod Community
Become a Member

Install PHP 8.1

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by duderuud, Sep 24, 2022.

  1. duderuud

    duderuud Premium Member Premium Member

    205
    75
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +156
    Local Time:
    7:11 AM
    1.25 x
    10.6
    Is it already possible to install PHP 8.1 by default instead of 8.0?

     
  2. wmtech

    wmtech Active Member

    165
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    7:11 AM
    Haven't tried, but I'm sure it is.

    Try with

    Code (Text):
    # Use a specific PHP version
    PHP_VERSION='8.1.10'


    in your custom_config file.
     
  3. duderuud

    duderuud Premium Member Premium Member

    205
    75
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +156
    Local Time:
    7:11 AM
    1.25 x
    10.6
    That would probably work but that's not flexible. I would like to install the latest version (whatever that may be at the time of installation).
     
  4. eva2000

    eva2000 Administrator Staff Member

    52,172
    11,998
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,501
    Local Time:
    3:11 PM
    Nginx 1.25.x
    MariaDB 10.x
    I updated the sticky thread with instructions https://community.centminmod.com/th...alinux-8-rocky-linux-8-oses.23261/#post-94451

    Default PHP 8.0
    Code (Text):
    yum -y update
    curl -4sL https://centminmod.com/installer-el8x.sh -o installer-el8x.sh; bash installer-el8x.sh
    


    Default PHP 8.1
    Code (Text):
    yum -y update
    curl -4sL https://centminmod.com/installer-el8x-81.sh -o installer-el8x-81.sh; bash installer-el8x-81.sh
    


    Default PHP 7.4
    Code (Text):
    yum -y update
    curl -4sL https://centminmod.com/installer-el8x-74.sh -o installer-el8x-74.sh; bash installer-el8x-74.sh