WaitAdmin的安装

WaitAdmin 是一款基于 ThinkPHP6 + Layui的模块化开发框。

源码下载

官方网站:https://www.waitadmin.cn

其它途径:

Gitee:https://gitee.com/wafts/WaitAdmin

Github:https://github.com/topwait/waitadmin

 环境要求

运行环境
要求版本推荐版本
PHP >=8.0 8.0.2
Mysql >=5.7 5.7
nginx 或 apache 无限制 nginx

 

第一步,设置项目的根目录为public目录,跟ThinkPHP部署一样

第二步,设置伪静态规则,以Apache服务器为例

修改public目录下面的.htaccess文件,目的是隐掉index.php

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  DirectoryIndex index.php
  RewriteEngine On
 
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

第三步,程序安装

http://localhost/install/install.php

红色字体为安装入口

安装完成后在public目录下生成一个类似(Wn6k3INaoR.php)的文件为后台入口

本地开发时可以修改为方便的名字,如admin.php,步骤:

找到根目录下面的.env文件

[PROJECT]
BACKEND = /admin.php

 

posted @ 2023-07-29 08:26  三言两语学编程  阅读(307)  评论(0)    收藏  举报