{"id":801,"date":"2021-01-31T06:55:50","date_gmt":"2021-01-31T09:55:50","guid":{"rendered":"https:\/\/henriquereis.com\/blog\/?p=801"},"modified":"2021-01-31T06:56:38","modified_gmt":"2021-01-31T09:56:38","slug":"php-8-0-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/henriquereis.com\/blog\/php-8-0-ubuntu-20-04\/","title":{"rendered":"php 8.0 Ubuntu 20.04"},"content":{"rendered":"\n<p>A instala\u00e7\u00e3o do php 8.0 n\u00e3o muda quase das vers\u00e3o 7.X e tanto faz Ubuntu 20.04 quanto Ubuntu 18.04 entre outros. Salvo alguns pacotes que passam a serem virtuais, como o json que est\u00e1 no junto com o pacote phpdbg.<\/p>\n\n\n\n<p>Se n\u00e3o tiver instalado, adicione a op\u00e7\u00e3o para instalar software propriet\u00e1rios<\/p>\n\n\n\n<p><code>sudo apt install software-properties-common<\/code><\/p>\n\n\n\n<p>Adicione o reposit\u00f3rio<br><code>sudo add-apt-repository ppa:ondrej\/php<\/code><br>Atualize informa\u00e7\u00f5es de pacotes<br><code>sudo apt update<\/code><\/p>\n\n\n\n<p>Se voc\u00ea receber mensagem NO_PUBKEY inv\u00e1lida, execute os comandos abaixo:<\/p>\n\n\n\n<p><code>sudo add-apt-repository ppa:nilarimogard\/webupd8<br>sudo apt update<br>sudo apt install launchpad-getkeys<br>sudo launchpad-getkeys<\/code><\/p>\n\n\n\n<p>Instale o php 8.0<\/p>\n\n\n\n<p>sudo apt install php8.0 \\<br>php8.0-bcmath \\<br>php8.0-common \\<br>php8.0-cgi \\<br>php8.0-curl \\<br>php8.0-dev \\<br>php8.0-fpm \\<br>php8.0-soap \\<br>php8.0-gd \\<br>php8.0-intl \\<br>php8.0-phpdbg \\<br>php8.0-mysql \\<br>php8.0-mbstring \\<br>php8.0-pgsql \\<br>php8.0-sqlite3 \\<br>php8.0-xml \\<br>php8.0-zip \\<br>php8.0-xsl \\<br>php8.0-imap \\<br>php8.0-apcu \\<br>php8.0-imagick \\<br>php8.0-memcached \\<br>php8.0-xdebug \\<br>php8.0-mongodb \\<br>php8.0-redis<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A instala\u00e7\u00e3o do php 8.0 n\u00e3o muda quase das vers\u00e3o 7.X e tanto faz Ubuntu 20.04 quanto Ubuntu 18.04 entre outros. Salvo alguns pacotes que passam a serem virtuais, como o json que est\u00e1 no junto com o pacote phpdbg. Se n\u00e3o tiver instalado, adicione a op\u00e7\u00e3o para instalar software propriet\u00e1rios sudo apt install software-properties-common &hellip; <a href=\"https:\/\/henriquereis.com\/blog\/php-8-0-ubuntu-20-04\/\" class=\"more-link\">Continue lendo <span class=\"screen-reader-text\">php 8.0 Ubuntu 20.04<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/801"}],"collection":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/comments?post=801"}],"version-history":[{"count":2,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/801\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/801\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/media?parent=801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/categories?post=801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/tags?post=801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}