{"id":3318,"date":"2020-07-20T11:18:14","date_gmt":"2020-07-20T17:18:14","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=3318"},"modified":"2020-12-03T10:40:05","modified_gmt":"2020-12-03T16:40:05","slug":"lnux-actualizar-php7-3-a-php7-4","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=3318","title":{"rendered":"Lnux. actualizar php7.3 a php7.4"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">ubuntu<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:ondrej\/php # Press enter to confirm.\nsudo apt-get update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Debian<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apt-transport-https lsb-release\nsudo wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg # Download the signing key\nsudo sh -c 'echo \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" &gt; \/etc\/apt\/sources.list.d\/php.list' # Add Ondrej's repo to sources list.\nsudo apt update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Instalar<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-cli php7.4-curl php7.4-json php7.4-gd php7.4-mbstring php7.4-intl php7.4-bcmath php7.4-bz2 php7.4-readline php7.4-zip php7.4-mysql php7.4-dom php7.4-ldap php7.4-bcmath php7.4-bz2 php7.4-intl php7.4-mbstring php7.4-apc php7.4-apcu php7.4-igbinary php7.4-imagick php7.4-odbc php7.4-pgsql php7.4-readline php7.4-redis php7.4-sqlite3 php7.4-xml php7.4-xsl php7.4-OPcache php7.4-gmp -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Habilitar m\u00f3dulo<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod php7.4<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Eliminar versiones anteriores<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt purge php7.3 libapache2-mod-php7.3 # For removing PHP 7.3\nsudo apt purge php7.2 libapache2-mod-php7.2 # For removing PHP 7.2\nsudo apt purge php7.1 libapache2-mod-php7.1 # For removing PHP 7.1\nsudo apt purge php7.0 libapache2-mod-php7.0 # For removing PHP 7.0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Reiniciar servidor<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>service apache2 reload<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">verificar versi\u00f3n<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Actualizar de php7.3 a php7.4 en linux<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[227,230],"tags":[231],"class_list":["post-3318","post","type-post","status-publish","format-standard","hentry","category-linux","category-php","tag-php7-4"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3318"}],"version-history":[{"count":6,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3318\/revisions"}],"predecessor-version":[{"id":4277,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3318\/revisions\/4277"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}