Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of each version of php in centOS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report