How to install PHP 7.3 / PHP 7.3-FPM on Linux Mint 19 (Cai dat PHP + NginX)
https://computingforgeeks.com/how-to-install-php-7-3-php-7-3-fpm-on-linux-mint-19/
Last updated
https://computingforgeeks.com/how-to-install-php-7-3-php-7-3-fpm-on-linux-mint-19/
Last updated
By Josphat Mutai -January 16, 201991160ShareFacebookTwitterGoogle+Pinterest(Last Updated On: January 17, 2019)
How can I install PHP 7.3 on Linux Mint 19?. In December 2018, the PHP team released PHP 7.3 for general availability (GA) and all the release details are on the PHP ChangeLog page. The default version of PHP available in Linux Mint 19 repositories is PHP 7.2.
This guide will walk you through the steps to install PHP 7.3 on Linux Mint 19. For Apache web server users, you’ll install libapache2-mod-php
as a dependency. But for Nginx users, you’ll install PHP 7.3-FPM
instead.
For other operating systems, use:
How to Install PHP 7.3 on Arch Linux and Manjaro
How to Install PHP 7.3 on Debian 9 / Debian 8
How to install PHP 7.3 on Ubuntu 18.04 / Ubuntu 16.04 / Debian How to Install PHP 7.3 on CentOS 7 / Fedora
Ensure you’re running an updated version of Linux Mint. If you have important programs running and don’t want to upgrade them, you can just do an update for packages list.
It is recommended to reboot after upgrade in case you have a newer version of Kernel installed.
Since Linux Mint 19 is a based on Ubuntu 18.04, the repository to be added is for Ubuntu 18.04.
Add ondrej/php
PPA repository which has PHP 7.3 packages and other required PHP extensions.
Once the repository has been added, install PHP by running the commands below on your terminal.
Version can be checked using the php -
command.
Install PHP 7.3 extensions by using the syntax
See example below
You can confirm installed version of PHP extension using apt policy
command:
PHP configuration file for setting up the environment are /etc/php/7.3/cli/php.ini
and /etc/php/7.3/apache2/php.ini
.
If you’re using Nginx Web Server, you’ll need to install php7.3-fpm for serving PHP pages.
PHP-FPM configurations files are available under the folder/etc/php/7.3/fpm/
You may need to restart your Web server after installation of PHP.
Have a happy PHP development and Applications hosting.