Example Analysis of each version of php in centOS
This article mainly shows you the "sample analysis of various versions of php in centOS", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let the editor lead you to study and study the "sample analysis of various versions of php in centOS".
Install REMI source: yum install http://rpms.remirepo.net/enterprise/remi-release-8.rpmyum install dnf-utils-yyum config-manager-- set-enabled remi definition version phpversion=php73
Here you can enter:
Php56,php70,php71,php72,php73yum install-y $phpversion-php-fpm $phpversion-php-cli $phpversion-php-bcmath $phpversion-php-gd $phpversion-php-json $phpversion-php-mbstring $phpversion-php-mcrypt $phpversion-php-mysqlnd $phpversion-php-opcache $phpversion-php-pdo $phpversion-php-pecl-crypto $phpversion-php-pecl-mcrypt $phpversion-php-pecl-geoip $phpversion-php-recode $phpversion-php-snmp $phpversion-php-soap $phpversion-php-xml $phpversion-php-pecl-redis Settings PHP
After the installation is complete, edit / etc/php/7.3/fpm/php.ini replacement; cgi.fix_pathinfo=1 is the cgi.fix_pathinfo=0 shortcut command:
Sed-I'sUniverse nexus cgi.fixtures pathinfoiled 1Universe cgi.fixtures pathinfoils 0Compact'/ etc/opt/remi/php73/php.ini
Important file location:
PHP location path Note installation location / opt/remi/php73php73 depends on different versions of the php.ini/etc/opt/remi/php73/php.iniphp fpm/etc/opt/remi/php73/php-fpm.d extension configuration directory / etc/opt/remi/php73/php.d
Manage PHP
Once installed, restart first!
Systemctl restart php73-php-fpm
Set up boot boot:
Systemctl enable php73-php-fpm
More actions:
Systemctl restart php73-php-fpm # restart systemctl start php73-php-fpm # start systemctl stop php73-php-fpm # turn off systemctl status php73-php-fpm # check status above is all the contents of this article "sample Analysis of various versions of php in centOS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!