thinkcmf安裝遇到的問題【服務器rewrite】未開啟


thinkcmf5.1的下載

鏈接:https://pan.baidu.com/s/17BikltE-zOVoJbrSgwI6lQ
提取碼:48wi

 

1、將thinkcmf5.1的文件全部解壓后,放到 D:\phpstudy_pro\WWW\thinkcmf 文件夾下面;安裝目錄設置到 thinkcmf/public下面去的;

 

 

 

 

2.打開phpstudy,設置->配置文件,選擇對應的.conf設置文件,

 

 

 復制下面的代碼,替換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即可

 

 

 

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

5.1文檔->基礎->安裝thinkcmf5.1->

nginx配置參考

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM