背景:one框架需要swool扩展,同时php版本需要7.3,目前服务器安装的是lnmp1.6其中php5.6.
所以觉得安装一个php7.3作为切换版本 ,以下是安装步骤
1.查找lnmp的install.sh文件,一般在/root/lnmp1.5/install.sh 下执行命令
./install.sh mphp

2.等待安装过程
安装结束,效果类似下图 php7.3,(安装中忘了截图)

3.查看有多个PHP版本

4.在/usr/local/nginx/conf 下会多一个enable-php7.3.conf

5.启动php,可以同时启动多个版本
/etc/init.d/php-fpm start
/etc/init.d/php-fpm7.3 start
查看启动项发现有多个

6.需要修改nginx配置一般是每个项目对应的vhost中的配置文件,找到include enable-php.conf; 修改为include enable-php7.3.conf; 俩个项目可以一个5.6版本一个7.3版本
6.1配置php5.6项目

6.2配置php7.3项目




![[附源码]计算机毕业设计在线项目管理Springboot程序](https://img-blog.csdnimg.cn/9cb20799872e4800a47c1b728f92fecd.png)





![[附源码]计算机毕业设计SpringBoot心理健康系统](https://img-blog.csdnimg.cn/f0e6a20bb24c4d5ba21eea250e72f541.png)




![[附源码]Python计算机毕业设计Django旅游度假村管理系统](https://img-blog.csdnimg.cn/c28ca93a6e844bff86751b574db126a7.png)

![[附源码]计算机毕业设计作业管理系统Springboot程序](https://img-blog.csdnimg.cn/edf9db8a48da4f53ba345c31bf812c3d.png)

