installing PHP 7.3.3 on CentOS 7.6<\/a>.<\/p>\n\n\n\nUpdate and Upgrade Ubuntu 18.04<\/h3>\n\n\n\n
Well, before you can proceed, ensure that your system packages are upto-date. Run the commands below to perform system package update and upgrade.<\/p>\n\n\n\n
sudo apt update<\/pre>\n\n\n\nsudo apt upgrade<\/pre>\n\n\n\nAdd Ondrej PHP PPA repository<\/h3>\n\n\n\n
PHP 7.3 is a not available on Ubuntu 18.04 default repositories. Thanks to Ond\u0159ej Sur\u00fd<\/code> PPA repository that enables us to install the latest versions of PHP. Hence, run the command below to add this PPA repository to your Ubuntu 18.04 system.
<\/span><\/p>\n\n\n\nsudo add-apt-repository ppa:ondrej\/php<\/pre>\n\n\n\nIf you encounter the error, sudo: add-apt-repository: command not found<\/code>, install the following package to fix it.<\/p>\n\n\n\nsudo apt install software-properties-common<\/pre>\n\n\n\nOnce the repositories are in place, re-synchronize your system packages to the latest versions.<\/p>\n\n\n\n
sudo apt update<\/pre>\n\n\n\nInstalling PHP 7.3.3 on Ubuntu 18.04<\/h3>\n\n\n\n
Your Ubuntu 18.04 system is now ready for PHP 7.3.3 installation.<\/p>\n\n\n\n
sudo apt install php7.3<\/pre>\n\n\n\nOnce the installation is done, you can run the command below to verify the corresponding to the PHP 7.3.3 version in the archives and the locally installed version.<\/p>\n\n\n\n
sudo apt-cache policy php7.3<\/pre>\n\n\n\nphp7.3:\n Installed: 7.3.3-1+ubuntu18.04.1+deb.sury.org+1\n Candidate: 7.3.3-1+ubuntu18.04.1+deb.sury.org+1\n Version table:\n *** 7.3.3-1+ubuntu18.04.1+deb.sury.org+1 500\n 500 http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu bionic\/main amd64 Packages\n 500 http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu bionic\/main i386 Packages\n 100 \/var\/lib\/dpkg\/status<\/pre>\n\n\n\nPHP 7.3.3 is now installed and ready to work with Apache web server. However, if you are looking at using PHP 7.3.3 with Nginx, you need to install PHP 7.3.3-FPM as shown below;<\/p>\n\n\n\n
sudo apt install php7.3-fpm<\/pre>\n\n\n\nThe verification of the same can be done by running the command below;<\/p>\n\n\n\n
apt-cache policy php7.3-fpm<\/pre>\n\n\n\nphp7.3-fpm:\n Installed: 7.3.3-1+ubuntu18.04.1+deb.sury.org+1\n Candidate: 7.3.3-1+ubuntu18.04.1+deb.sury.org+1\n Version table:\n *** 7.3.3-1+ubuntu18.04.1+deb.sury.org+1 500\n 500 http:\/\/ppa.launchpad.net\/ondrej\/php\/ubuntu bionic\/main amd64 Packages\n 100 \/var\/lib\/dpkg\/status<\/pre>\n\n\n\nInstall PHP 7.3 Extensions on Ubuntu 18.04<\/h3>\n\n\n\n
Well, if you are looking at working on PHP-based web applications, you need to install various PHP extensions. You can always search for a specific PHP 7.3 extension by running the command below;<\/p>\n\n\n\n
apt-cache search php7.3-*<\/pre>\n\n\n\nTo install a specific PHP 7.3 extension, you would run the command as shown below where <extension-name><\/code> is the name of a specific extension;<\/p>\n\n\n\napt install php7.3-<extension-name><\/pre>\n","protected":false},"excerpt":{"rendered":"This guides simply describes how to install PHP 7.3.3 on Ubuntu 18.04. PHP is aserver-side, HTML-embedded scripting language. PHP 7.3.3 along with other releases such<\/p>\n","protected":false},"author":1,"featured_media":17842,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,254,304,342],"tags":[203,343,344,67],"class_list":["post-2348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-apache","category-nginx","category-php","tag-php","tag-php-7-3","tag-php7-3-3","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2348"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2348"}],"version-history":[{"count":8,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2348\/revisions"}],"predecessor-version":[{"id":21132,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2348\/revisions\/21132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/17842"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}