![]() Hit F6 for search inside the editor and update the following values for better performance. sudo nano /etc/php/8.1/apache2/php.iniįor PHP 8.1 FPM with Nginx the php.ini location will be in following directory. Now we configure PHP for Web Applications by changing some values in php.ini file.įor PHP 8.1 with Apache the php.ini location will be in following directory. sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-redis php8.1-intl -y Configure PHP 8.1 Now, install some commonly used php-extensions with the following command. Installing PHP extensions are simple with the following syntax. Execute the following command to install PHP 8.1 FPM sudo apt install php8.1-fpmĪfter the installation has completed, confirm that PHP 8.1 FPM has installed correctly with this command php-fpm8.1 -v Install PHP 8.1 Extensions Install PHP 8.1 for ApacheĮxecute the following command to install PHP 8.1 sudo apt install php8.1Īfter the installation has completed, you can confirm the installation using the following command php -v Install PHP 8.1 FPM for Nginxįor Nginx you need to install FPM. ![]() Once you have added the PPA you can install PHP 8.1. sudo apt install software-properties-common Add PPA for PHP 8.1Īdd the ondrej/php which has PHP 8.1 package and other required PHP extensions. This will update the package index and update the installed packages to the latest version. Make sure your Ubuntu server is having the latest packages by running the following command. Prerequisitesīasic knowledge of using SSH Terminal on Linux. ![]() This set up will work on all Linux servers. This installation is tested on Google Cloud Platform with a Compute Compute Engine VM Instance.
0 Comments
Leave a Reply. |