{"id":408,"date":"2022-05-12T08:11:31","date_gmt":"2022-05-12T08:11:31","guid":{"rendered":"https:\/\/tomtechproductions.be\/?p=408"},"modified":"2022-05-12T08:11:31","modified_gmt":"2022-05-12T08:11:31","slug":"install-php8-1-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/blog.tomtechproductions.be\/index.php\/2022\/05\/12\/install-php8-1-ubuntu-20-04\/","title":{"rendered":"Install php8.1 ubuntu 20.04"},"content":{"rendered":"\n<p>Update system<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n\n\n\n<p>Add repository<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install software-properties-common\nsudo add-apt-repository ppa:ondrej\/php\nsudo apt update<\/code><\/pre>\n\n\n\n<p>Install php8.1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.1<\/code><\/pre>\n\n\n\n<p>Install features<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-redis php8.1-intl -y<\/code><\/pre>\n\n\n\n<p>Enable php8.1 disable php7.4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod php8.1\nsudo a2dismod php7.4<\/code><\/pre>\n\n\n\n<p>Restart apache <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart<\/code><\/pre>\n\n\n\n<p>running multiple versions: <a href=\"https:\/\/tecadmin.net\/install-multiple-php-version-apache-ubuntu\/\">How To Install Multiple PHP Versions with Apache on Ubuntu 22.04\/20.04\/18.04 (tecadmin.net)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update system Add repository Install php8.1 Install features Enable php8.1 disable php7.4 Restart apache running multiple versions: How To Install Multiple PHP Versions with Apache on Ubuntu 22.04\/20.04\/18.04 (tecadmin.net)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-408","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"_links":{"self":[{"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":0,"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/posts\/408\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/media?parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/categories?post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tomtechproductions.be\/index.php\/wp-json\/wp\/v2\/tags?post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}