
The packages might not be available on the default respository. To install the mcrypt PHP module we first need to satisfy the following prerequisites: sudo apt install php-dev libmcrypt-dev php-pear Now we are ready to install mcrypt PHP module on our Ubuntu 18.04 system: sudo pecl channel-update sudo pecl install mcrypt-1.0.1 Open the /etc/php/7.2/cli/php. In this step, you need to install the required third-party repository of the software or apps that you are trying to install on Ubuntu. Add a Third-Party Repository To Fix the “No Installation Candidate” Error. Now, you can easily install any package that is available in your default repository.

Try to run the update and upgrade your system to get the latest versions of the packages. Issue to install npm package with node js 10.15.1 Ended Hey, I need to install the packages using node js 10.15.

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. Here is the command below what I used for installing php-sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt ubuntu php php5 Share. How to install PHP 8 on Ubuntu 20.04 LTS and Debian 10 Everytime when I try to install php using this command, it shows me 'E: Package php5-mcrypt has no installation candidate'.
