thinkphp5后台管理系统TP5Admin源码分享

汉王 整站源码 收藏

TP5Admin使用thinkphp5框架+Bootstrap开发,后台已做好菜单与权限管理,支持一个管理员多个组。其主要目的是为了提高开发效率,需要开发什么功能,后台直接添加菜单,程序里直接写控制器!

首次使用导入数据库,后台账号admin,密码admin


菜单管理
管理员分组
组分配权限
一个管理员可以属于多个组
操作日志管理 运行环境要求PHP5.4以上。
虚拟机配置,需要绑定到public目录中,这样比较安全.
Nginx虚拟机配置如下:

  1. server {
  2. listen 80;
  3. server_name tp5admin.com;
  4. root "/Users/mac/wwwroot/work/tp5admin.com/public";
  5. location / {
  6. index index.html index.htm index.php;
  7. autoindex on;
  8. if (!-e $request_filename) {
  9. ###一级目录下
  10. rewrite ^/(.*)$ /index.php/$1 last;
  11. ###域名下的二级目录
  12. #rewrite ^/目录名/(.*)$ /目录名/index.php/$1 last;
  13. }
  14. }
  15. location ~ \.php(.*)$ {
  16. fastcgi_pass 127.0.0.1:9000;
  17. fastcgi_index index.php;
  18. fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. fastcgi_param PATH_INFO $fastcgi_path_info;
  21. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  22. include fastcgi_params;
  23. }
  24. }
window环境 LAMP 配置

1、在 C:\Windows\System32\drivers\etc\hosts文件底部添加      
  1. 127.0.0.1 tp5admin.com
2、在httpd.conf 文件底部添加 tp5admin 网站配置
  1. <virtualhost *:80>
  2. ServerName tp5admin.com
  3. DocumentRoot C:\xampp\htdocs\tp5admin\public
  4. <virtualhost>
3、重启apache 即可 运行tp5admin.com/admin 即可。

下载地址