php backend management system_TP5admin is a backend management system developed with thinkphp5 framework + Bootstrap. The backend has done menu and permission management, and supports multiple groups for one administrator. This is what I use to practice when learning tp5. For reference only!
Environment: The software needs to be in an environment greater than php5.4 for the software to run normally.
Installation steps:
The virtual machine configuration needs to be bound to the public directory, which is safer.
The Nginx virtual machine configuration is as follows:
server{
listen80;
server_nametp5admin.com;
root"/Users/mac/wwwroot/work/tp5admin.com/public";
location/{
indexindex.htmlindex.htmindex.php;
autoindexon;
if(!-e$request_filename){
###Under the first-level directory
rewrite^/(.*)$/index.php/$1last;
###Second-level directory under domain name
#rewrite^/directory name/(.*)$/directory name/index.php/$1last;
}
}
location~.php(.*)${
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_split_path_info^((?U).+.php)(/?.+)$;
fastcgi_paramscript_FILENAME$document_root$fastcgi_script_name;
fastcgi_paramPATH_INFO$fastcgi_path_info;
fastcgi_paramPATH_TRANSLATED$document_root$fastcgi_path_info;
includefastcgi_params;
}
}
window environment LAMP configuration
1Add at the bottom of the C:WindowsSystem32driversetchosts file
127.0.0.1tp5admin.com
2Add tp5admin website configuration at the bottom of the httpd.conf file
ServerNametp5admin.com
DocumentRootC:xampphtdocstp5adminpublic
3 Restart apache and run tp5admin.com/admin