{"id":347,"date":"2020-09-05T23:34:51","date_gmt":"2020-09-06T06:34:51","guid":{"rendered":"https:\/\/downthecrop.xyz\/blog\/?p=347"},"modified":"2020-12-17T04:00:13","modified_gmt":"2020-12-17T12:00:13","slug":"update-php-7-4-redis-apache2-ubuntu","status":"publish","type":"post","link":"https:\/\/downthecrop.xyz\/blog\/update-php-7-4-redis-apache2-ubuntu\/","title":{"rendered":"Update to PHP 7.4 with Redis on Apache2 Ubuntu 16.04\/18.04\/20.04"},"content":{"rendered":"\n<p>PHP 7.4 is recommended to use used by WordPress. In this guide the simple to use commands will be layed out one by one for easy copy and pasting to your Ubuntu VPS\/Server.<\/p>\n\n\n\n<p>First update\/sync your repositories and make sure you have redis-server and php7.4 installed<\/p>\n\n\n\n<p>next disable php7.3\/php7.2 and enable php7.4 (substitute for your currently used php version)<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">sudo a2dismod php7.3<br>\nsudo a2enmod php7.4<\/code><\/pre>\n\n\n\n<p>Install common php7.4 modules. You may skip this step if you know exactly what modules you need.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">sudo apt install php7.4-dom php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y<\/code><\/pre>\n\n\n\n<p>Install php-redis and enable the module<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">sudo apt install php-redis<br>\nsudo phpenmod -v 7.4 -s ALL redis<\/code><\/pre>\n\n\n\n<p>restart the apache2 service<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">sudo service apache2 restart<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7.4 is recommended to use used by WordPress. In this guide the simple to use commands will be layed out one by one for easy copy and pasting to your Ubuntu VPS\/Server. First update\/sync your repositories and make sure you have redis-server and php7.4 installed next disable php7.3\/php7.2 and enable php7.4 (substitute for your &hellip; <a href=\"https:\/\/downthecrop.xyz\/blog\/update-php-7-4-redis-apache2-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Update to PHP 7.4 with Redis on Apache2 Ubuntu 16.04\/18.04\/20.04<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[333,457],"tags":[500,501,485,486,495,498,496,493,502,483,508,509,510,507,499,484,504,503,505,506,494,497,184,347,487,488,489,490,491,482,492],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/posts\/347"}],"collection":[{"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":9,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":482,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions\/482"}],"wp:attachment":[{"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/downthecrop.xyz\/blog\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}