Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/codekissyoung/markdown-blog
- Owner: codekissyoung
- License: mit
- Created: 2018-08-23T09:07:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T16:14:59.000Z (over 3 years ago)
- Last Synced: 2024-09-29T19:42:21.980Z (about 2 months ago)
- Topics: blog, php72
- Language: PHP
- Size: 9.49 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)