Want to subscribe to topics you're interested in?
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 Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    5:52 AM
    1.29 x
    11.4
    Is it already possible to install PHP 8.1 by default instead of 8.0?

     
  2. wmtech

    wmtech Active Member

    187
    44
    28
    Jul 22, 2017
    Ratings:
    +139
    Local Time:
    5:52 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 Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    5:52 AM
    1.29 x
    11.4
    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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:52 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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