Back to Blog
Ubuntu 17 php7 pdfinfo5/31/2023 ![]() Next, verify the status of the php7.0-fpm service: sudo apt-get install php7.2 php7.2-fpm php7.2-mysql libapache2-mod-php7.2 -yĪfter installing both PHP versions, start the php7.0-fpm service:.Install php7.2, php7.2-fpm, php7.2-mysql, and libapache2-mod-php7.2: Now repeat the process for PHP version 7.2. libapache2-mod-fcgid contains a mod_fcgid that starts a number of CGI program instances to handle concurrent requests.libapahce2-mod-php7.0 provides the PHP module for the Apache webserver.php7.0-mysql connects PHP to the MySQL database.php7.0-fpm provides the Fast Process Manager interpreter that runs as a daemon and receives Fast/CGI requests.php7.0 is a metapackage used to run PHP applications.sudo apt-get install php7.0 php7.0-fpm php7.0-mysql libapache2-mod-php7.0 libapache2-mod-fcgid -y.Next, install php7.0, php7.0-fpm, php7.0-mysql, libapache2-mod-php7.0, and libapache2-mod-fcgid with the following commands: The ondrej/php PPA will have more up-to-date versions of PHP than the official Ubuntu repositories, and it will also allow you to install multiple versions of PHP in the same system: Now add the ondrej/php repository to your system. The software-properties-common package provides the apt-add-repository command-line utility, which you will use to add the ondrej/php PPA (Personal Package Archive) repository. sudo apt-get install software-properties-common -y.But to accomplish this, you will first need to add the Ondrej PHP repository to your system.Įxecute the apt-get command to install software-properties-common: ![]() With the prerequisites completed, you will now install PHP versions 7.0 and 7.2, as well as PHP-FPM and several additional extensions. Step 1 - Installing PHP Versions 7.0 and 7.2 with PHP-FPM For the purposes of this tutorial, we will use two subdomains, each specified with an A record in our DNS settings: site1.your_domain and site2.your_domain. You can learn how to point domains to DigitalOcean Droplets by following How To Point to DigitalOcean Nameservers From Common Domain Registrars.
0 Comments
Read More
Leave a Reply. |