PHP - GitzJoey/DCSLab GitHub Wiki

This project is using PHP 8.2
Recommended to use a stable version.

Installation

  • Adding a Repo
    $ dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm
    
  • Reset and enable repo for PHP 8.2
    $ dnf module reset php
    $ dnf module enable php:remi-8.2
    
  • Install
    $ dnf install php php-cli php-curl php-mysqlnd php-opcache php-zip php-intl php-common php-gd php-gmp
    
  • Verify installation
    $ php -v
    

Update to next version

  • List available remi repo
    $ dnf module list php
    
  • Enable the repo
    $ dnf module reset php
    $ dnf module enable php:remi-8.2
    

XDEBUG Config

add in php.ini

[xdebug]
xdebug.mode=debug
xdebug.start_with_request=trigger