how to install LAMP on Ubuntu 20.04<\/a>. Once you are done with that tutorial, specifically the PHP install section then you can proceed with this tutorial<\/p>\n\n\n\nYou may now proceed to set up the modules based on your application requirements. You can start by searching for PHP 7 modules in the apt package repository.<\/p>\n\n\n\n
$ sudo apt-cache search php7*<\/code><\/pre>\n\n\n\nThe following is a partial output of what to expect.<\/p>\n\n\n\n
Output\nphp7.4-bcmath - Bcmath module for PHP\nphp7.4-bz2 - bzip2 module for PHP\nphp7.4-cgi - server-side, HTML-embedded scripting language (CGI binary)\nphp7.4-cli - command-line interpreter for the PHP scripting language\nphp7.4-common - documentation, examples and common module for PHP\nphp7.4-curl - CURL module for PHP\nphp7.4-dba - DBA module for PHP\nphp7.4-dev - Files for PHP7.4 module development\n\n...\n\nphp8.0-bz2 - bzip2 module for PHP\nphp8.0-cgi - server-side, HTML-embedded scripting language (CGI binary)\nphp8.0-cli - command-line interpreter for the PHP scripting language\nphp8.0-common - documentation, examples and common module for PHP\nphp8.0-curl - CURL module for PHP\nphp8.0-dba - DBA module for PHP\nphp8.0-dev - Files for PHP8.0 module development\nphp8.0-ds - PHP extension providing efficient data structures for PHP 7\nphp8.0-enchant - Enchant module for PHP\nphp8.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)\nphp8.0-gd - GD module for PHP<\/code><\/pre>\n\n\n\nYou can now install the required PHP modules on your system as listed in the above command using the command in the format below.<\/p>\n\n\n\n
$ sudo apt-get install php7.4-mysql php7.4-curl php7.4-json php7.4-bz2<\/code><\/pre>\n\n\n\nThere you have it! You are now ready to use PHP in your applications.<\/p>\n\n\n\n
Next, you can follow this tutorial to learn how to enable and disable PHP modules<\/a> on a version or SAPI basis on Ubuntu.<\/p>\n","protected":false},"excerpt":{"rendered":"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features Before you get started you need…<\/p>\n","protected":false},"author":1,"featured_media":9581,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,25,16,18],"tags":[58,164,354,424,452,531,598,635],"yoast_head":"\n
How To Install PHP Modules on Ubuntu 20.04 | 18.04<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n