While installing PHP, php-fpm is also installed as its dependency, it will be treated as FastCGI Server, so use below command to start and enable FPM service, ~]$ sudo systemctl start php-fpm Now run the following dnf command to install PHP 7.4, ~]$ sudo dnf install php php-cli php-commonĪs we can see that it is installing its dependencies like httpd and nginx, So once above packages are installed successfully, run below “ php -v” command to verify installed php version, ~]$ php -v ![]() ![]() Once the repositories are configured and enabled, run the following dnf command to view available PHP versions, ~]$ dnf module list phpĪs we can see in above output, PHP 7.2 is the default package from CentOS-8 AppStream repository, so in the next step, we will enable latest PHP module stream (redmi-7.4) so that when we install install PHP using dnf then it will automatically pick packages from remi-7.4 module Step:2) Enable latest PHP Module Stream (remi-7.4)Įxecute the following dnf command to enable remi-7.4 PHP module, ~]$ sudo dnf module enable php:remi-7.4
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |