{"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 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 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 The EPEL repository contains additional packages for Enterprise Linux, which are sometimes dependencies for other packages. Install it using:<\/p>\n\n\n\n After adding the repositories, refresh your DNF cache:<\/p>\n\n\n\n Reset the default PHP module on your system to avoid conflicts:<\/p>\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 To ensure PHP has been installed correctly, check the version:<\/p>\n\n\n\n PHP comes with a default configuration file located at PHP-FPM is a daemon for handling PHP requests. Start and enable it using:<\/p>\n\n\n\n Create a 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":"\nStep 1: Update Your System<\/h3>\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
$ 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
$ 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
$ sudo dnf makecache -y<\/code><\/pre>\n\n\n\n
Step 5: Reset PHP Module<\/h3>\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
$ 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
$ php -v<\/code><\/pre>\n\n\n\n
Step 8: Configure PHP (Optional)<\/h3>\n\n\n\n
\/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
$ 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
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