简体   繁体   中英

run the different version of php through php-fpm in centos

I installed PHP 7.2.9 with the source code (name: php-fpm729 ). and installed PHP 5.6.31 (name: php-fpm ), and set them to listen on different port.

php 5.6.31

path: php 5.6.31 path

(/usr/local/php5/etc/php-fpm.conf): config file

php7.2.9

path php 7.2.9 path

(/root/php729/etc/php-fpm.conf.default): php-fpm.conf.default

(/root/php729/etc/php-fpm.d/test.conf): test.conf

nginx: nginx

(/usr/local/nginx/conf/nginx.conf): nginx.conf

(/usr/local/nginx/conf/vhost/sea.conf): sea.conf

I'm sure I've restarted the nginx service and php-fpm , but it still show PHP 5.6.31 under www.sea.com , I don't know what's wrong, and I've google it still couldn't figure it out,Hope anybody help me...

Here is the img(www.sea.com): look the last link for reference(link:sea.conf)

You can run this command to switch between the version or set the default version

update-alternatives --config php

For more information read this Multiple PHP version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM