![]() ![]() Make sure to restart your PHP fpm and let’s see if the version will show up. sudo apt-get install php7.4-cli php7.4-fpm php7.4-pdo php7.4-mysql php7.4-zip php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-json php7.4-imagick sudo apt-get install php7.4 apache2- apache2-bin-Īfter that, we have to install necessary module for our PHP that are useful for our web apps like WordPress. To ignore apache on installation, we have to add apache2- apache2-bin. Next is, we need to install the PHP 7.4 and we have to make sure that apache server is not installed when doing this. The most popular repository is from Ondrej. To install PHP, you need a repository that we can use to just download the compiled code for Ubuntu OS. ![]() Or simply installing it with this simple line of code sudo apt-get install nginx. Installing Pagespeed, Brotli, PHP and NGINX on Ubuntu.This step doesn’t include step on installing NGINX, you can check our other post for that: ![]() So, without further ado, let’s proceed on installing these two version of PHP 7.4. The good news is, this is possible with NGINX and Ubuntu where you can use multiple version of PHP on your system and even nominate which server to use PHP 8.0 or PHP 7.4. To do that without server down time, your first choice is to install PHP 8.0 alongside with your current PHP 7.4 version. Though the previous OPCache was not natively executive compared to the latest JIT compiler.īecause of this improvement, you must likely just to try PHP 8.0 if it will works on your server. Basically, it gives your server significant faster code execution compared to the traditional PHP compilation.īut did you know that this leap in performance was based on the original OPCache found on the previous version of PHP? In which it pre-compiled the codes of your PHP so that when it run on the next time, it gives the pre-compiled result. One of this are the JIT (Just in Time) Compiler, where this new features enables PHP to compile your code immediately before it is executed. The update brings several advantage and improvements to squeeze some juices for a speedy NGINX webserver and web app like WordPress. PHP has a new version and it was recently released on the public on November 2020. ![]()
0 Comments
Leave a Reply. |