PhalconCMS博客系统

Related tags

CMS PhalconCMS
Overview

PhalconCMS

介绍

基于Phalcon的博客CMS

推荐环境

  • PHP 5.6+
  • mysql 5.6+
  • phalcon 3.0+

安装步骤

  • 在数据库中导入phalconCMS.sql文件
  • 添加nginx配置,demo:
	server {
	    listen 80;
	    server_name your-site-name.com;
	    root /path/PhalconCMS/public;
	    index index.php index.html index.htm;
	
	    location / {
	        if ($request_uri ~ (.+?\.php)(|/.+)$ ) {
	            break;
	        }
	
	        if (!-e $request_filename) {
	            rewrite ^/(.*)$ /index.php?_url=/$1;
	        }
	    }
	
	    location ~ \.php {
	        fastcgi_pass  unix:/tmp/php-cgi.sock;
	        fastcgi_index index.php;
	        include fastcgi_params;
	        set $real_script_name $fastcgi_script_name;
	        if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
	            set $real_script_name $1;
	            set $path_info $2;
	        }
	        fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
	        fastcgi_param SCRIPT_NAME $real_script_name;
	        fastcgi_param PATH_INFO $path_info;
	    }
	
	    access_log  /path/logs/PhalconCMS/access.log  access;
	    error_log  /path/logs/PhalconCMS/error.log;
	}
  • 修改app/cache目录权限:chmod -R 0777 app/cache
  • 在public/index.php中修改"$runtime"值(dev:开发 test:测试 pro:线上)。程序会根据此变量,匹配不同运行环境所需的配置(app/config/api/, app/config/system/)文件
  • 后台(http://www.your-site-name.com/admin/index/index) 登录账号密码:admin 654321
  • 在后台的“站点管理-基本设置”中修改“站点地址”、“CDN地址”等

作者

www.marser.cn (http://www.marser.cn)

QQ群

  • 广州PHP高端交流群:158587573 广州PHP高端交流
  • Phalcon玩家群:150237524 Phalcon玩家

升级版本

版本升级日志

You might also like...
Comments
  • 我用的php7.2, phalcon4跑不起来

    我用的php7.2, phalcon4跑不起来

    Fatal error: Uncaught Error: Class 'Phalcon\Logger\Adapter\File' not found in /workspace/PhalconCMS/public/index.php:58 Stack trace: #0 {main} thrown in /workspace/PhalconCMS/public/index.php on line 58

    $ /opt/lampp/bin/php --version PHP 7.2.8 (cli) (built: Jul 26 2018 15:17:41) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

    $ /opt/lampp/bin/php -m | grep phalcon phalcon

    opened by mingzhanghui 1
  • fix xss in articles search bar

    fix xss in articles search bar

    Hi, I find this CMS in https://github.com/phalcon/awesome-phalcon, great job for the repo! When I test the cms , I find xss in articles search bar just like this : Location: image XSS poc: image I got xss when search "><ScRiPt>alert(document.cookie)</ScRiPt> When i read the code, I find the way to fix it, so I open this pull request.

    opened by xxcdd 0
Releases(1.0.3)