当前位置:网站首页>Thinkcmf6.0 installation tutorial

Thinkcmf6.0 installation tutorial

2022-07-07 07:56:00 Xie Xiaoxin

1. Go to the official website to download thinkcmf / ThinkCMF--6.0

2.  Go to thinkcmf / ThinkCMF Enterprise portal solutions --> download

 3. Then merge the second step file into the first step

4. use phpstudy Create a website

Good configuration nginx file

 location / {
        index  index.php index.html index.htm;
         # If the request is neither a file , It's not a directory , Then execute the rewrite rule 
         if (!-e $request_filename)
         {
            # Address as a parameter rewrite To index.php On .
            rewrite ^/(.*)$ /index.php?s=$1;
            # If it's a subdirectory, use the following sentence , take subdir Change it to the directory name .
            #rewrite ^/subdir/(.*)$ /subdir/index.php?s=$1;
         }
    }
    
    location /api/ {
        index  index.php index.html index.htm;
         # If the request is neither a file , It's not a directory , Then execute the rewrite rule 
         if (!-e $request_filename)
         {
            # If it's a subdirectory, use the following sentence , take subdir Change it to the directory name .
            rewrite ^/api/(.*)$ /api.php?s=$1;
         }
    }
    
    location ~* ^\/upload\/.+\.(html|php)$ {
        return 404;
    }
    
    location ~* ^\/plugins\/.+\.(html|php)$ {
        return 404;
    }
    
    location ~* ^\/themes\/.+\.(html|php)$ {
        return 404;
    }

5. Start the installation database

6. Remove the installer after successful installation

composer remove thinkcmf/cmf-install

 

原网站

版权声明
本文为[Xie Xiaoxin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070438072166.html