{"id":9580,"date":"2021-01-28T16:29:47","date_gmt":"2021-01-28T21:29:47","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9580"},"modified":"2021-12-04T05:31:22","modified_gmt":"2021-12-04T05:31:22","slug":"install-php-modules-ubuntu-20-04-lts","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/","title":{"rendered":"How To Install PHP Modules on Ubuntu 20.04 | 18.04"},"content":{"rendered":"\n

Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features<\/p>\n\n\n\n

Before you get started you need to have PHP installed on your Ubuntu system. If you haven’t you can start with this tutorial on 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\n

You 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\n

The 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\n

You 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\n

There 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":"\nHow To Install PHP Modules on Ubuntu 20.04 | 18.04<\/title>\n<meta name=\"description\" content=\"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install PHP Modules on Ubuntu 20.04 | 18.04\" \/>\n<meta property=\"og:description\" content=\"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-28T21:29:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-04T05:31:22+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How To Install PHP Modules on Ubuntu 20.04 | 18.04\",\"datePublished\":\"2021-01-28T21:29:47+00:00\",\"dateModified\":\"2021-12-04T05:31:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\"},\"wordCount\":179,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg\",\"keywords\":[\"Apache\",\"Cross Platform\",\"Linux\",\"Open Source\",\"PHP\",\"Server\",\"Ubuntu\",\"Web\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Libraries\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\",\"url\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\",\"name\":\"How To Install PHP Modules on Ubuntu 20.04 | 18.04\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg\",\"datePublished\":\"2021-01-28T21:29:47+00:00\",\"dateModified\":\"2021-12-04T05:31:22+00:00\",\"description\":\"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Install PHP Modules\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install PHP Modules on Ubuntu 20.04 | 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install PHP Modules on Ubuntu 20.04 | 18.04","description":"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/","og_locale":"en_US","og_type":"article","og_title":"How To Install PHP Modules on Ubuntu 20.04 | 18.04","og_description":"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features","og_url":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-01-28T21:29:47+00:00","article_modified_time":"2021-12-04T05:31:22+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How To Install PHP Modules on Ubuntu 20.04 | 18.04","datePublished":"2021-01-28T21:29:47+00:00","dateModified":"2021-12-04T05:31:22+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/"},"wordCount":179,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg","keywords":["Apache","Cross Platform","Linux","Open Source","PHP","Server","Ubuntu","Web"],"articleSection":["Articles","Guides","How To","Libraries","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/","url":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/","name":"How To Install PHP Modules on Ubuntu 20.04 | 18.04","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg","datePublished":"2021-01-28T21:29:47+00:00","dateModified":"2021-12-04T05:31:22+00:00","description":"Here, we will be showing you how to install PHP modules on your Ubuntu system as a post PHP install task to add features","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-php-modules.jpg","width":1200,"height":630,"caption":"Install PHP Modules"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/install-php-modules-ubuntu-20-04-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How To Install PHP Modules on Ubuntu 20.04 | 18.04"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9580"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=9580"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9580\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/9581"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=9580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=9580"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=9580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}