#BirdBBS
PHP Simple BBS V2EX(like), based on YII framework 1.1.17.
##Requirements
- MySQL 5.5
- PHP 5.3 (with fileinfo module default)
- YII Framework1.1.17"s requirements
##Install
auto install
-
git clone project to your system
-
config your web server , web root dir is
birdbbs/www/
-
type
http://www.yourname.com/install.php
in browser to install -
login to ADMIN panel http://www.yourname.com/index.php?r=admin/default config your system
manually
-
git clone project to your system
-
config your web server , web root dir is
birdbbs/www/
-
load all *.sql (
birdbbs/www/protected/data/
) file to mysql server. (notice table prefix) -
make file config.php to dir
birdbbs/www/protected/config/config.php
-
login to ADMIN panel http://www.yourname.com/index.php?r=admin/default config your system
config.php example
$CONF = array();
$CONF["db"] = array(
"connectionString" => "mysql:host=127.0.0.1;dbname=birdbbs;port=3306",
"emulatePrepare" => true,
"username" => "root",
"password" => "admin",
"charset" => "utf8",
"tablePrefix" => "bbs_",
"schemaCachingDuration" => 3600
);
$CONF["params"] = array(
"adminEmail"=>"[email protected]",
"mail" => array(
"noreply" => "[email protected]",
"smtp" => "smtp.exmail.qq.com",
"password" => "test",
),
// third part login bind
// sina weibo.com, remove comment
// "sina" => array(
// "appKey" => "xxxxxxx",
// "appSecrectKey" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
// "callbackUrl" => "http://yourhoust.com/index.php?r=callback/sina",
//),
);
nginx example
server {
set $htdocs /Users/outman/Repositories/birdbbs/www;
listen 80;
server_name dev.birdbbs.com;
location / {
root $htdocs;
autoindex on;
index index.php index.html;
if (!-e $request_filename){
rewrite (.*) /index.php?r=$1;
}
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $htdocs$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
}
##Online demo
##Contact Us & Commercial Service
##Github
##GitOschina
##License
MIT