{"id":14058,"date":"2024-06-17T22:56:56","date_gmt":"2024-06-17T19:56:56","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=14058"},"modified":"2024-06-17T22:56:57","modified_gmt":"2024-06-17T19:56:57","slug":"how-to-install-php-8-3-on-rocky-linux-8-10-systems","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/","title":{"rendered":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems"},"content":{"rendered":"\n

Rocky Linux 8.10, a community enterprise operating system designed to be 100% bug-for-bug compatible with America’s top enterprise Linux distribution, is gaining traction among developers and system administrators. One of the key tasks you may need to perform on Rocky Linux<\/a> is installing PHP, a widely-used general-purpose scripting language that is especially suited for web development.<\/p>\n\n\n\n

PHP 8.3, the latest PHP release at the time of writing, offers new features and improvements that enhance performance and developer experience. Here’s a step-by-step guide to installing PHP 8.3 on Rocky Linux 8.10 systems.<\/p>\n\n\n\n

Step 1: Update Your System<\/h3>\n\n\n\n

Before installing new software, it’s always a good practice to update your system packages to the latest version. You can do this by running the following command:<\/p>\n\n\n\n

$ sudo dnf update -y<\/code><\/pre>\n\n\n\n

Step 2: Enable Remi’s Repository<\/h3>\n\n\n\n

PHP 8.3 packages are available in Remi’s third-party RPM repository. To add it to your system, execute the following command:<\/p>\n\n\n\n

$ sudo dnf -y install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/code><\/pre>\n\n\n\n

Step 3: Install EPEL Repository<\/h3>\n\n\n\n

The EPEL repository contains additional packages for Enterprise Linux, which are sometimes dependencies for other packages. Install it using:<\/p>\n\n\n\n

$ sudo dnf -y install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm<\/code><\/pre>\n\n\n\n

Step 4: Update DNF Cache<\/h3>\n\n\n\n

After adding the repositories, refresh your DNF cache:<\/p>\n\n\n\n

$ sudo dnf makecache -y<\/code><\/pre>\n\n\n\n

Step 5: Reset PHP Module<\/h3>\n\n\n\n

Reset the default PHP module on your system to avoid conflicts:<\/p>\n\n\n\n

$ sudo dnf module reset php -y<\/code><\/pre>\n\n\n\n

Step 6: Install PHP 8.3<\/h3>\n\n\n\n

Now, enable the PHP 8.3 Remi module and install PHP along with some commonly used extensions:<\/p>\n\n\n\n

$ sudo dnf module enable php:remi-8.3 -y\n$ sudo dnf install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl -y<\/code><\/pre>\n\n\n\n

Step 7: Verify PHP Installation<\/h3>\n\n\n\n

To ensure PHP has been installed correctly, check the version:<\/p>\n\n\n\n

$ php -v<\/code><\/pre>\n\n\n\n

Step 8: Configure PHP (Optional)<\/h3>\n\n\n\n

PHP comes with a default configuration file located at \/etc\/php.ini<\/code>. You can edit this file to customize your PHP settings.<\/p>\n\n\n\n

Step 9: Start and Enable PHP-FPM Service<\/h3>\n\n\n\n

PHP-FPM is a daemon for handling PHP requests. Start and enable it using:<\/p>\n\n\n\n

$ sudo systemctl start php-fpm\n$ sudo systemctl enable php-fpm<\/code><\/pre>\n\n\n\n

Step 10: Test PHP Installation<\/h3>\n\n\n\n

Create a info.php<\/code> file in your web server’s document root with the following content:<\/p>\n\n\n\n

<?php\n  phpinfo();\n?><\/code><\/pre>\n\n\n\n

Access this file through your web browser to view PHP configuration details.<\/p>\n\n\n\n

By following these steps, you should have PHP 8.3 running on your Rocky Linux 8.10 system. This setup is ideal for developing and deploying modern web applications.<\/p>\n\n\n\n

For more detailed guides and troubleshooting, refer to the official PHP documentation<\/a> and the Rocky Linux forums<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Rocky Linux 8.10, a community enterprise operating system designed to be 100% bug-for-bug compatible with America’s top enterprise Linux distribution, is gaining traction among developers and system administrators. One of…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,9,25,27,28,16,18],"tags":[354,424,433,452,1268,591],"yoast_head":"\nHow to Install PHP 8.3 on Rocky Linux 8.10 Systems<\/title>\n<meta name=\"description\" content=\"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install PHP 8.3 on Rocky Linux 8.10 Systems\" \/>\n<meta property=\"og:description\" content=\"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-17T19:56:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-17T19:56:57+00:00\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Install PHP 8.3 on Rocky Linux 8.10 Systems\",\"datePublished\":\"2024-06-17T19:56:56+00:00\",\"dateModified\":\"2024-06-17T19:56:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\"},\"wordCount\":352,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"keywords\":[\"Linux\",\"Open Source\",\"Optimization\",\"PHP\",\"Rocky Linux\",\"Tools\"],\"articleSection\":[\"Guides\",\"How To\",\"Libraries\",\"Programming\",\"Software\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\",\"url\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\",\"name\":\"How to Install PHP 8.3 on Rocky Linux 8.10 Systems\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"datePublished\":\"2024-06-17T19:56:56+00:00\",\"dateModified\":\"2024-06-17T19:56:57+00:00\",\"description\":\"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install PHP 8.3 on Rocky Linux 8.10 Systems\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/x.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems","description":"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/","og_locale":"en_US","og_type":"article","og_title":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems","og_description":"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration","og_url":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2024-06-17T19:56:56+00:00","article_modified_time":"2024-06-17T19:56:57+00:00","author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems","datePublished":"2024-06-17T19:56:56+00:00","dateModified":"2024-06-17T19:56:57+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/"},"wordCount":352,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"keywords":["Linux","Open Source","Optimization","PHP","Rocky Linux","Tools"],"articleSection":["Guides","How To","Libraries","Programming","Software","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/","url":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/","name":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"datePublished":"2024-06-17T19:56:56+00:00","dateModified":"2024-06-17T19:56:57+00:00","description":"Here's a step-by-step guide showing how to install PHP 8.3 on Rocky Linux 8.10 systems including configuration","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/how-to-install-php-8-3-on-rocky-linux-8-10-systems\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Install PHP 8.3 on Rocky Linux 8.10 Systems"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/x.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/14058"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=14058"}],"version-history":[{"count":2,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/14058\/revisions"}],"predecessor-version":[{"id":14310,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/14058\/revisions\/14310"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=14058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=14058"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=14058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}