Tuesday, June 1, 2021

Set Default PHP version in CentOS 8



sudo yum update

sudo reboot

sudo yum search php-

sudo yum module list php

sudo yum install yum-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm

sudo yum module list php
sudo yum module reset php
sudo yum module enable php:remi-7.4
## verify it php set to 7.4 ##
sudo yum module list php




sudo yum install php php-fpm




sudo yum install php-fpm php-common php-cli




php -v
php --version




sudo systemctl enable php-fpm.service




sudo systemctl start php-fpm.service
sudo systemctl status php-fpm.service

sudo systemctl stop php-fpm.service
sudo systemctl restart php-fpm.service

cat /etc/nginx/conf.d/php-fpm.conf

ls -l /run/php-fpm/www.sock

cat /etc/nginx/default.d/php.conf

sudo systemctl restart nginx.service

php --version

sudo vi /usr/share/nginx/html/hello.php

curl -I http://localhost/hello.php
curl http://localhost/hello.php

No comments:

Post a Comment

Office 2021 Activation using command

  @echo off title Activate Microsoft Office 2021 (ALL versions) for FREE - office.com&cls&echo =====================================...