LAMP PHP 8.1 Installation in Zorin OS – Step-by-step

November 25, 2021 | By the+gnu+linux+evangelist.

Installing

  1. 2. Enabling PPA Repo

    Add PHP PPA for Zorin OS GNU/Linux

    Add PHP Repo for Zorin OS
  2. 3. Installing LAMP

    Now to Install LAMP PHP 8.1 on Zorin OS
    For the Default Setup play:

    sudo apt install apache2 php8.1 mysql-server mysql-client php8.1-mysql

    Or to replace MySQL with MariaDB Open Source Server

    Enabling MariaDB Repo for Zorin OS

    In this case the Command become:

    sudo apt install apache2 php8.1 mariadb-server mariadb-client php8.1-mysql

    This Setup includes also the most useful Extensions and Tools.
    Then Test your new Php with:

    php -v
  3. 4. Searching PHP 8.1 Extensions

    Again to Search PHP 8.1 Extensions.

    So you can Search for the available PHP 8 Extensions running:

    sudo apt search php8.1

    And possibily refine the Result using a grep Pipe

    sudo apt search php8.1 | grep [KEYWORD]

    Like for instance:

    sudo apt search php8.1 | grep mysql

    Some useful Modules to Support a WordPress Website can be installed with:

    sudo apt install php8.1-imagick php8.1-curl php8.1-gd php8.1-mbstring php8.1-xml php8.1-xmlrpc php8.1-soap php8.1-intl php8.1-zip
    Apt Php 8 Search Results

    Last, to Install multiple Packages at once you may use the following Syntax:

    sudo apt install php8.1-{curl,xml,imagick,mysql,fpm,bz2}

Contents


QuickChic Theme • Powered by WordPress