Git Product home page Git Product logo

linger's Introduction

简易图片分享系统

这是一个图片存储的网站系统,具有简单的时间线功能,同时有完善的通知中心。

系统需求

PHP版本必须大于等与5.4 Mysql必须支持INNODB引擎,数据库默认编码请指定为utf8mb4,集合为utf8mb4_unicode_ci,创建语句如下

CREATE DATABASE `database_name` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */

安装步骤

Clone Git,过程中必须包含子项目,否则将导致直接不可用

git clone --recurse-submodules [email protected]:loveyu/Linger.git
cd config
mv all-simple.php all.php
vim all.php //配置正确的数据库连接信息
访问 http://xxx.xxx/install.php 进行安装

安装后会创建一个管理员账户,用该账户登录可访问后台,然后进行详细的配置。

网站配置

由于完全依赖于伪静态,所以必须对文件进行重定向。

nginx配置

location / {
	if (!-f $request_filename){
		rewrite (.*) /index.php;
	}
}
# 重定向404页面,防止静态资源404无法获取
error_page 404 /index.php;

Apache 配置

RewriteEngine On
RewriteBase /

#不存在的文件直接重定向
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php [L]

同时,对于Apache也可以使用PATH_INFO的形式,如 index.php/Home .

系统默认将Web配置目录放到web文件夹下,其他对应的文件sys,app,install等文件均在web目录的上级目录, 这是为了安全性的考虑,如果有需要将文件调整到一个目录,可具体参考sys/config.php文件调整目录结构,并调整index.php文件的具体参数 同时如果未安装系统,同时可能需要修改install.php中的文件参数。

问题反馈

详情页面

http://www.loveyu.net/Linger

反馈

http://www.loveyu.org/3273.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.