![]() Install php 7.1 modules on Ubuntu 18.04/16.04 LTS using below command sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip Install php 7.0 Modules Install php 7.2 modules on Ubuntu 18.04/16.04 LTS using below command sudo apt install php7.2-common php7.2-mysql php7.2-curl php7.2-json php7.2-cgi php7.2-opcache php7.2-mbstring Install php 7.1 Modules Install php 7.3 modules on Ubuntu 18.04/16.04 LTS using below command sudo apt install php7.3-common php7.3-mysql php7.3-xml php7.3-xmlrpc php7.3-curl php7.3-gd php7.3-cli php7.3-dev php7.3-mbstring php7.3-opcache php7.3-zip Install php 7.2 Modules Install php 7.4 modules on Ubuntu 18.04/16.04 LTS using below command sudo apt install php7.4-common php7.4-mysql php7.4-curl php7.4-json php7.4-cgi php7.4-opcache php7.4-mbstring Install php 7.3 Modules Next Install php modules as per your php versions, search php modules are available using below command sudo apt-cache search php7* Install php 7.4 Modules With Zend OPcache v7.4.9, Copyright (c), by Zend Technologies Installing PHP Modules/Extensions Zend Engine v3.4.0, Copyright (c) Zend Technologies To check current PHP version using command line php -v Install php 7.0 on Ubuntu 18.04/16.04 LTS using below command sudo apt -y install php7.0 Check PHP Version Install php 7.1 on Ubuntu 18.04/16.04 LTS using below command sudo apt -y install php7.1 Install PHP 7.0 on Ubuntu Install php 7.2 on Ubuntu 18.04/16.04 LTS using below command sudo apt -y install php7.2 Install PHP 7.1 on Ubuntu Install php 7.3 on Ubuntu 18.04/16.04 LTS using below command sudo apt -y install php7.3 Install PHP 7.2 on Ubuntu Now Install php 7.4 on Ubuntu 18.04/16.04 LTS using below command sudo apt -y install php7.4 Update the system packages sudo apt update Install PHP 7.4 on Ubuntu Restart an Apache service to take effect sudo systemctl restart apache2Īdd the PHP PPA repository in Ubuntu using below commands, sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php If you are using Apache web server, Install php 7.4 with Apache on Ubuntu 18.04/16.04 LTS using below commands sudo apt update sudo apt install php libapache2-mod-php PHP is free and open source multi purpose scripting language which is used for Web Development. ![]() How to Completely Remove php 7 from Ubuntu 18.04/16.04 LTS.Install PHP 7 on Ubuntu 18.04/16.04 LTS. ![]() Loaded: loaded (/lib/systemd/system/php7.4-fpm. To check the status of the service, run systemctl status php7.4-fpm Once the installation is completed, the FPM service will start automatically. Run the following commands to install PHP and PHP FPM packages: sudo apt update sudo apt install php-fpm We’ll use PHP-FPM (“fastCGI process manager”) to handle the PHP files. ![]() Once the packages are installed, restart Apacheįor the PHP module to get loaded: sudo systemctl restart apache2 Installing PHP 7.4 with Nginx #ĭoesn’t have built-in support for processing PHP files. Installing PHP 7.4 with Apache #Īs your web server, run the following commands to install PHP and Apache PHP module: sudo apt update sudo apt install php libapache2-mod-php Before choosing which version of PHP to install, make sure that your applications support it. We’ll also show you how to install previous PHP versions. This guide covers the steps necessary to install PHP on Ubuntu 20.04 and integrate it with Nginx and Apache.Īt the time of writing, the default Ubuntu 20.04 repositories include PHP 7.4 version. How to install PHP 8 on Ubuntu 20.04 LTS and Debian 10
0 Comments
Leave a Reply. |