Thinkphp5后台管理,tp后台,tp5后台

浏览:20948 发布日期:2016/11/24 分类:系统代码 关键字: tp5Admin,tp后台,PHP后台管理
thinkphp5框架+Bootstrap开发,后台已做好菜单与权限管理

thinkphp5框架+Bootstrap开发,后台已做好菜单与权限管理,支持一个管理员多个组。这是我学习tp5用来练手用的。仅供参考使用!

演示:http://admin.0532888.cn



后期最新代码更新到github上吧。
https://github.com/duzhenxun/TP5Admin

虚拟机配置,需要绑定到public目录中,这样比较安全.

Nginx虚拟机配置如下:

server {
listen 80;
server_name tp5admin.com;
root "/Users/mac/wwwroot/work/tp5admin.com/public";
location / {
index index.html index.htm index.php;
autoindex on;
if (!-e $request_filename) {
###一级目录下
rewrite ^/(.*)$ /index.php/$1 last;
###域名下的二级目录
#rewrite ^/目录名/(.*)$ /目录名/index.php/$1 last;
}
}
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;
}
}
window环境 LAMP 配置



1 在 C:\Windows\System32\drivers\etc\hosts文件底部添加
127.0.0.1 tp5admin.com


2 在httpd.conf 文件底部添加 tp5admin 网站配置

<virtualhost *:80>

ServerName tp5admin.com

DocumentRoot C:\xampp\htdocs\tp5admin\public

<virtualhost>

3 重启apache 即可 运行tp5admin.com/admin 即可

附件 tp5admin后台管理.zip ( 6.36 MB 下载:931 次 )

评论( 相关
后面还有条评论,点击查看>>