Skip to content

Commit

Permalink
宝塔自动安装脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
colder-winter committed Mar 20, 2020
1 parent ab11d31 commit 43a8f8b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
15 changes: 15 additions & 0 deletions auto_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"php_ext":"pathinfo,redis",
"chmod":[
{"mode":777,"path":"app/public/attachment"},
{"mode":777,"path":"/bin"}
],
"success_url":"/app/public/install",
"php_versions":"56,70,71,72,73",
"db_config":"/app/config/deploy/database.cfg.php",
"admin_username":"",
"admin_password":"",
"run_path":"/app/public",
"remove_file":[],
"enable_functions":[]
}
3 changes: 3 additions & 0 deletions nginx.rewrite
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
location / {
try_files $uri $uri/ /index.php?$query_string;
}

0 comments on commit 43a8f8b

Please sign in to comment.