Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codekissyoung/markdown-blog

A Simple PHP Blog Program for manage Markdown file.
https://github.com/codekissyoung/markdown-blog

blog php72

Last synced: about 1 month ago
JSON representation

A Simple PHP Blog Program for manage Markdown file.

Awesome Lists containing this project

README

        

# Markdown 开源博客系统

> 一个将Markdown文件发布成博客文章的PHP开源程序

## 使用方法

1. `git clone https://github.com/codekissyoung/markdown-blog.git blog`

1. 在项目根目录`blog/`放置`favicon.ico`作为网站图标

1. 将`Apache`或`Nginx`或者其他`Web服务器`的`域名解析路径`设置成本项目的`web`目录

1. 复制`config.example.php`为`config.php`文件, 然后修改之,可以设置的选项如下:

```php

Options Indexes FollowSymLinks
AllowOverride all
Require all granted

```

- 需要开启URL重写模块

```
sudo a2enmod rewrite
```

## Nginx Server 配置参考

```bash
server {
listen 80;
root /home/cky/workspace/markdown-blog/web;
index index.php index.html;
server_name blog.cky.com;
rewrite_log on;

location / {
if ( !-e $request_filename ) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}

location ~ \.php($|/) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
```

## 案例

- [Codekissyoung Blog](https://blog.codekissyoung.com/)
- [Cool Blog](http://zj0395.com/)