{"id":9311,"date":"2022-04-27T21:57:00","date_gmt":"2022-04-27T19:57:00","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=9311"},"modified":"2022-04-27T10:33:05","modified_gmt":"2022-04-27T08:33:05","slug":"9311","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2022\/04\/27\/9311\/","title":{"rendered":""},"content":{"rendered":"\n<p>As I wished to add a little NextCloud installation to my small corporate server I used <a href=\"https:\/\/nextcloud.com\/install\/#tab-web\">its web installer<\/a> that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). <a href=\"https:\/\/www.server-world.info\/en\/note?os=CentOS_Stream_8&amp;p=php&amp;f=2\">These notes on server-world.info<\/a> reminded me dnf has its own ways.<\/p>\n\n\n\n<!--nextpage-->\n\n\n<blockquote>\n<p>\u00a0<\/p>\n<table summary=\"subject\">\n<tbody>\n<tr>\n<td>\n<div class=\"subject\">PHP 7.3 : Install\n<div class=\"date\">2021\/03\/15<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"base\" summary=\"1\">\n<tbody>\n<tr>\n<td class=\"num\">\u00a0<\/td>\n<td>\n<div class=\"block\">Install PHP 7.3.<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td class=\"num\">[1]<\/td>\n<td>Confirm the current enabled version of PHP and Install it.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"term\" summary=\"1-1\">\n<tbody>\n<tr>\n<td>[root@dlp ~]#\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/dnf.html\">dnf<\/a> module list php<\/div>\n<br \/>\n<pre>CentOS Stream 8 - AppStream\nName    Stream        Profiles                          Summary\nphp     7.2 [d][e]    common [d] [i], devel, minimal    PHP scripting language\nphp     7.3           common [d], devel, minimal        PHP scripting language\nphp     7.4           common [d], devel, minimal        PHP scripting language\n\nHint: [d]efault, [e]nabled, [x]disabled, [i]nstalled\n\n<\/pre>\n<div class=\"block\">\n<div class=\"color2\"># if other versions are enabled, reset once and switch to the version<\/div>\n<br \/>[root@dlp ~]#\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/dnf.html\">dnf<\/a> module reset php<\/div>\n<br \/>[root@dlp ~]#\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/dnf.html\">dnf<\/a> module enable php:7.3<\/div>\n<\/div>\n<div class=\"color2\"># specify PHP 7.3 and install<\/div>\n<br \/>[root@dlp ~]#\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/dnf.html\">dnf<\/a> module -y install php:7.3\/common<\/div>\n<br \/>\n<pre>Dependencies resolved.\n================================================================================\n Package       Arch    Version                                 Repository  Size\n================================================================================\nUpgrading:\n php-cli       x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream  3.0 M\n php-common    x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream  669 k\n php-fpm       x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream  1.6 M\n php-json      x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream   73 k\n php-mbstring  x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream  618 k\n php-xml       x86_64  7.3.20-1.module_el8.2.0+498+4deef2f1    appstream  187 k\n\nTransaction Summary\n================================================================================\nUpgrade  6 Packages\n.....\n.....\n\n<\/pre>\n[root@dlp ~]#\n<div class=\"color1\">php -v<\/div>\n<br \/>\n<pre>PHP 7.3.20 (cli) (built: Jul  7 2020 07:53:49) ( NTS )\nCopyright (c) 1997-2018 The PHP Group\nZend Engine v3.3.20, Copyright (c) 1998-2018 Zend Technologies\n\n<\/pre>\n<div class=\"color2\"># verify to create test script<\/div>\n<br \/>[root@dlp ~]#\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/echo.html\">echo<\/a> &#8220;&lt;?php echo &#8216;PHP 7.3 Test Page&#8217;.\\&#8221;\\n\\&#8221;; ?&gt;&#8221; &gt; php_test.php<\/div>\n<br \/>[root@dlp ~]#\n<div class=\"color1\">php php_test.php<\/div>\n<br \/>PHP 7.3 Test Page<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">As I wished to add a little NextCloud installation to my small corporate server I used its web installer that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). These notes on server-world.info reminded me dnf&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2022\/04\/27\/9311\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,111],"tags":[],"class_list":["post-9311","post","type-post","status-publish","format-standard","hentry","category-documentations","category-fedora-redhat"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s6daft-9311","jetpack-related-posts":[{"id":1551,"url":"https:\/\/monodes.com\/predaelli\/2016\/05\/20\/installing-php-5-and-7-on-the-same-server\/","url_meta":{"origin":9311,"position":0},"title":"Installing PHP 5 and 7 on the same server","author":"Paolo Redaelli","date":"2016-05-20","format":"link","excerpt":"\u00a0Installing PHP 5.6.x and 7.0.x with Ubuntu 14.04 and Virtualmin 5.0gpl using a PPA \u2014 23Systems I suspect I'll have to follow him to re-enable the aging StatusNet microblog installation at work, before upgrading it to Gnu Social","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11099,"url":"https:\/\/monodes.com\/predaelli\/2024\/01\/06\/how-standard-ebooks-serves-millions-of-requests-per-month-with-a-2gb-vps-or-a-paean-to-the-classic-web-alex-cabal\/","url_meta":{"origin":9311,"position":1},"title":"How Standard Ebooks serves millions of requests per month with a 2GB VPS; or, a paean to the classic web &#8211; Alex Cabal","author":"Paolo Redaelli","date":"2024-01-06","format":false,"excerpt":"Source: How Standard Ebooks serves millions of requests per month with a 2GB VPS; or, a paean to the classic web - Alex Cabal Standard Ebooks is a project that takes transcriptions of public domain literature, like the kind typically available at Project Gutenberg, and creates beautiful, modern ebooks out\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8430,"url":"https:\/\/monodes.com\/predaelli\/2021\/05\/21\/starting-from-somewhere\/","url_meta":{"origin":9311,"position":2},"title":"Starting from somewhere","author":"Paolo Redaelli","date":"2021-05-21","format":false,"excerpt":"Today I was looking for a PHP library to show differences between two HTML documents. No, the plain Text_Diff\/Text_Diff_Renderer_inline or WordPress version won't do. I was so lucky to immediatly find php-htmldiff. Then I scrolled down and - horror of horrors! - just see what I found. I can't litter\u2026","rel":"","context":"In &quot;Fun&quot;","block_context":{"text":"Fun","link":"https:\/\/monodes.com\/predaelli\/category\/fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/immagine-510x127.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3249,"url":"https:\/\/monodes.com\/predaelli\/2017\/07\/30\/learning-php-7\/","url_meta":{"origin":9311,"position":3},"title":"Learning PHP 7","author":"Paolo Redaelli","date":"2017-07-30","format":false,"excerpt":"Learning PHP 7: Learn the art of PHP programming through this example-rich book filled to the brim with tutorials every PHP developer needs to know One has to be humble enough to start from the beginning when he really wants to learn a language. I've read half of it and\u2026","rel":"","context":"In &quot;Eiffel&quot;","block_context":{"text":"Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11656,"url":"https:\/\/monodes.com\/predaelli\/2024\/05\/18\/enum-best-practices-in-php-8-3\/","url_meta":{"origin":9311,"position":4},"title":"Enum Best Practices in PHP 8.3","author":"Paolo Redaelli","date":"2024-05-18","format":"link","excerpt":"Enums were added to PHP in 2021. In this post, I share my experience working with enums and give a brief overview. Source: Enum Best Practices in PHP 8.3","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/monodes.com\/predaelli\/category\/php\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3428,"url":"https:\/\/monodes.com\/predaelli\/2017\/10\/09\/from-php-to-javascript-with-node-js-matters\/","url_meta":{"origin":9311,"position":5},"title":"From PHP to JavaScript with Node.js \u2013 Matters","author":"Paolo Redaelli","date":"2017-10-09","format":"link","excerpt":"https:\/\/blog.matters.tech\/migrating-from-php-to-javascript-with-node-js-155534498b58","rel":"","context":"In &quot;Javascript&quot;","block_context":{"text":"Javascript","link":"https:\/\/monodes.com\/predaelli\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=9311"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9311\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=9311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=9311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=9311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}