Get the most out of your Centmin Mod LEMP stack
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

    269
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +189
    Local Time:
    4:30 PM
    1.27 x
    10.6
    Is it already possible to install PHP 8.1 by default instead of 8.0?

     
  2. wmtech

    wmtech Active Member

    180
    44
    28
    Jul 22, 2017
    Ratings:
    +137
    Local Time:
    4:30 PM
    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

    269
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +189
    Local Time:
    4:30 PM
    1.27 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

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    12:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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