{"id":3825,"date":"2023-01-04T15:44:48","date_gmt":"2023-01-04T21:44:48","guid":{"rendered":"https:\/\/linuxitos.com\/main\/?p=3825"},"modified":"2023-01-05T21:17:27","modified_gmt":"2023-01-06T03:17:27","slug":"instalar-php-8-2-desde-repo-remi-fedora-37","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-php-8-2-desde-repo-remi-fedora-37\/","title":{"rendered":"Instalar PHP 8.2 desde repo remi | Fedora 37"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/update_php.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/update_php.png\" alt=\"\" class=\"wp-image-3827\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/update_php.png 1024w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/update_php-300x169.png 300w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/update_php-768x432.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Contexto<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PHP 8.2 ha continuado construyendo sobre la base renovada establecida por PHP 8.0 y PHP 8.1 y fue lanzado el 8 de Diciembre de 2022, e introdujo nuevas caracter\u00edsticas y mejoras tales como clases de solo lectura, redactar par\u00e1metros sensibles en backtraces, permitir constantes en traits, obtener propiedades enum en expresiones const, nuevas funciones mysqli_execute_query, y el m\u00e9todo mysqli::execute_query y mucho m\u00e1s.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A continuaci\u00f3n les mostrar\u00e9 c\u00f3mo habilitar PHP desde el repositorio de REMI e instalar PHP 8.2 en un servidor Fedora Linux o en una estaci\u00f3n de trabajo de escritorio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instalar el repositorio remi<\/h2>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf install http:\/\/rpms.remirepo.net\/fedora\/remi-release-37.rpm -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Eliminar versi\u00f3n actual de php<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Considerando que pueda haber una versi\u00f3n previa de php instalar, es necesario desinstalar todos los paquetes previos.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Respaldar el archivo php.ini ubicado en \/etc\/php.ini<\/li>\n\n\n\n<li>Realizar cualquier otra configuraci\u00f3n que necesiten reutilizar<\/li>\n<\/ul>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf remove php php-fpm -y<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf remove php* -y<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf module list reset php -y<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Habilitar el repositorio de la versi\u00f3n 8.2<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf module enable php:remi-8.2 -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Instalar PHP 8.2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Instalar PHP 8.2 y algunas extensiones m\u00e1s comunes, si se guardaron los paquetes o extensiones previas, aqu\u00ed se debe de reintalar.<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf install php-bcmath php php-cli php-common php-devel php-fedora-autoloader php-gd php-intl php-mbstring php-mysqlnd php-nikic-php-parser4 php-pdo php-pear php-pecl-mcrypt php-pecl-zip php-process php-xml composer libmcrypt composer php-devel<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verificar instalaci\u00f3n<\/h2>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">php -v<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Si la instalaci\u00f3n fue correcta, ahora se podr\u00e1 corroborar con el comando anterior, y la salida ser\u00e1 algo as\u00ed:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01-1024x373.png\" alt=\"\" class=\"wp-image-3828\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01-1024x373.png 1024w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01-300x109.png 300w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01-768x280.png 768w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2023\/01\/Screenshot-from-2023-01-04-15-43-01.png 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Y si aparece esa informaci\u00f3n, entonces est\u00e1 instalado correctamente, ahora queda que reconfiguren sus proyectos.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">En mi caso lo uso desde XAMPP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contexto PHP 8.2 ha continuado construyendo sobre la base renovada establecida por PHP 8.0 y PHP 8.1 y fue lanzado el 8 de Diciembre de 2022, e introdujo nuevas caracter\u00edsticas y mejoras tales como clases de solo lectura, redactar par\u00e1metros sensibles en backtraces, permitir constantes en traits, obtener propiedades enum en expresiones const, nuevas funciones [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3827,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1124,1511,1165],"tags":[1874,1556,1872,1873],"class_list":["post-3825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-and-mysql","category-server","category-servidor-php","tag-instalar-php-8-2","tag-php","tag-php8-2","tag-remi"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/3825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=3825"}],"version-history":[{"count":2,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/3825\/revisions"}],"predecessor-version":[{"id":3829,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/3825\/revisions\/3829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media\/3827"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=3825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=3825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=3825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}