## 安装要求
* PHP 版本 ≥ 7.2
* Mysql版本 ≥ 5.5
* PDO 拓展
* fileinfo 拓展
* curl 拓展
* ZipArchive 支持
## 安装教程
1. 下载LightPicture,上传至 web 运行环境,解压。
2. 设置运行目录为 public。
3. 配置网站默认文档:
~~~
index.html
index.php
~~~
4. 配置 Rewrite 规则为:thinkphp
#### [](https://github.com/osuuu/LightPicture#-apache-)\[ Apache \]
~~~
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
~~~
### [](https://github.com/osuuu/LightPicture#-nginx)\[ Nginx\]
~~~
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
~~~
5. 访问 域名/install,根据页面提示安装。
6. 安装完成后默认 账号为admin 密码123456