Chinaunix首页 | 论坛 | 博客
  • 博客访问: 68850
  • 博文数量: 15
  • 博客积分: 638
  • 博客等级: 上士
  • 技术积分: 155
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-26 23:13
文章分类

全部博文(15)

文章存档

2012年(1)

2011年(1)

2009年(13)

分类: 系统运维

2009-03-18 21:54:21

1
#apt-get install libapache2-mod-php5 php5-cgi php5-cli php-pear php5-gd php5-mysql
#pear channel-update pear.php.net
#pear install channel://pear.php.net/Validate-0.8.2
#pear install DB_DataObject
#pear install Mail
#pear install Net_SMTP

2 MySQL
mysql -uroot -p -e 'create database laconica';
mysql -uroot -p -e "grant all privileges on laconica.* to laconica@localhost identified by 'PASSWORD'";
mysql -uroot -p laconica < db/laconica.sql #put the directory laconical in /var/www/

3 config.php

$config['site']['name'] = 'Just another Laconica microblog';
$config['site']['server'] = 'localhost';
$config['site']['path'] = 'laconica';
#$config['site']['fancy'] = false;
#$config['site']['theme'] = 'default';
#For contact email, defaults to $_SERVER["SERVER_ADMIN"]
#$config['site']['email'] = 'admin@localhost';
#Brought by...
#$config['site']['broughtby'] = 'Individual or Company';
#$config['site']['broughtbyurl'] = '';
#If you don't want to let users register (say, for a one-person install)
#Crude but effective -- register everybody, then lock down
#$config['site']['closed'] = true;
#Only allow registration for people invited by another user
#$config['site']['inviteonly'] = true;

# If you want logging sent to a file instead of syslog
$config['site']['logfile'] = '/tmp/laconica.log';

# This is a PEAR DB DSN, see
# Set it to match your actual database


$config['db']['database'] = 'mysqli://la:la@localhost/laconica';
$config['db']['ini_laconica'] = $config['db']['schema_location'].'/laconica.ini';
# *** WARNING *** WARNING *** WARNING *** WARNING ***
# Setting debug to a non-zero value will expose your DATABASE PASSWORD to Web users.
# !!!!!! DO NOT SET THIS ON PRODUCTION SERVERS !!!!!! DB_DataObject's bug, btw, not
# ours.
# *** WARNING *** WARNING *** WARNING *** WARNING ***
#$config['db']['debug'] = 0;
#$config['db']['db_driver'] = 'MDB2';




阅读(868) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~