VPS侦探论坛

 找回密码
 注册
查看: 3266|回复: 1

lnmp1.6切换php版本

[复制链接]
发表于 2020-5-13 07:35:16 | 显示全部楼层 |阅读模式

搭建的时候用的php5.6版本,想切换到php版本5.2。





vhost下的配置也改了
include enable-php5.2.conf;

server
    {
        listen 80;
        #listen [::]:80;
        server_name www.php52.com ;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/www.php52.com;

        include rewrite/none.conf;
        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

        include enable-php5.2.conf;

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }


访问网页还是5.6的

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-5-13 07:40:36 | 显示全部楼层


不好意思可以删帖吗,突然发现是改nginx.conf 已解决
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 17:49 , Processed in 0.026380 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表