cmf后台获取服务器文件,thinkcmf安装遇到的问题【服务器rewrite】未开启

thinkcmf5.1的下载

链接:https://pan.baidu.com/s/17BikltE-zOVoJbrSgwI6lQ

提取码:48wi

1、将thinkcmf5.1的文件全部解压后,放到 D:\phpstudy_pro\WWW\thinkcmf 文件夹下面;安装目录设置到 thinkcmf/public下面去的;

bd61ae22c6cae6deaab3d51ff3d2d071.png

2.打开phpstudy,设置->配置文件,选择对应的.conf设置文件,

75881f3c8da175f49fcb987b2c93b72c.png

复制下面的代码,替换cmf.im_80内容代码;注意 root "D:/project/thinkcmf/public";

server {

listen 80;

server_name cmf.im;

root "D:/project/thinkcmf/public";

location / {

index index.html index.htm index.php;

#主要是这一段一定要确保存在

if (!-e $request_filename) {

rewrite ^(.*)$ /index.php?s=/$1 last;

break;

}

#结束

#列出目录

autoindex on;

}

location ~ \.php(.*)$ {

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

include fastcgi_params;

}

}

3。再进行下一步,输入数据库的账号和密码,安装thinkcmf即可

1d6c3e0417b74b5e5218e1f30dedd59c.png

查看 https://www.thinkcmf.com/doc5_1.html

5.1文档->基础->安装thinkcmf5.1->

nginx配置参考

9d91a5767d671161ff8001ebdad70619.png

来源:https://www.cnblogs.com/qianjilou/p/13283045.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值