Ubuntu21.10 LAMP PHP8.1
Ubuntu21.10 LAMP PHP8.1
1 – Quick-
Start Guide
You are Welcome! The Tutorial Shows You Step-by-Step How to Install LAMP PHP 8.1 in
Ubuntu 21.10 Impish GNU/Linux.
And to get the PHP 8.1 Ubuntu Impish Installation, you have to Manually Setup the Ubuntu
Apt PPA Repository.
Especially relevant: the Guide include instructions on How to Replace MySQL with
MariaDB in LAMP Setup.
PHP 8 is a major Update of the PHP Language!
Moreover, the PHP 8 New Features includes:
•Named Arguments
•Union Types
•attributes
•Constructor Property Promotion
•Match Expression
•Nullsafe Operator
•JIT
Again this PHP 8.1 PPA includes also All the most Useful Extensions for PHP usage.
Finally, LAMP is de facto Web Development Standard. Today, the products that make up the
LAMP stack are included by default in nearly all GNU/Linux distributions.
1. Launching Terminal
3. Installing LAMP
3.This Setup includes also the most useful Extensions and Tools.
Then Test your new Php with:
php -v
Last, to Install multiple Packages at once you may use the following Syntax:
1. 5. Testing LAMP
cd /var/www/html
<?php
phpinfo();
?>
Ctrl+x to Save & Exit from nano Editor ;)
Set the www-data as User and Group:
You should Successfully see the PHP Info notice similar to here above :)
How to Create an Apache 2 Virtual Host on Ubuntu 21.10 Impish.
1. 1. Accessing Shell
1. 2. Adding Domain
And append:
127.0.0.1 [myDomainName.com]
1. 3. Making Directory
Append at Least:
<VirtualHost *:80>
ServerName[myDomainName.com]
ServerAliaswww.[myDomainName.com]
DocumentRoot /var/www/html/[mySite]
</VirtualHost>
cat /etc/apache2/sites-available/000-default.conf
1. 5. Enabling Virtual-Host
cd /etc/apache2/sites-enabled
1. 6. Restarting Apache