2011年8月7日星期日

Statusnet 安装手记 [转]

原文参见: http://www.zzbaike.com/wiki/StatusNet%E5%9F%BA%E6%9C%AC%E5%AE%89%E8%A3%85

截图:截图

服务器配置:

PHP 5.2.3+

  • 1、开启Curl模块,Curl最好支持HTTPS;
  • 2、开启XMLWriter模块
  • 3、开启MySQL模块
  • 4、开启GD模块
  • 5、开启mbstring模块
  • 6、开启gettext模块
  • 7、开启tidy模块

MySQL 5.x

  • 关闭MySQL Strict Mode,即在my.ini或者my.cnf里将下面这行注释掉:
 sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 

Apache2.2.x

  • 开启mod_rewrite模块

准备相关开源项目代码

1、启用PHP的PEAR,具体启用方式请自己搜索解决方案

2、在PEAR中使用如下命令,下载相关源码:

 pear install db pear install validate-0.8.3 pear install mdb2 pear install mdb2#mysql pear install db_dataobject pear install date pear install mail pear install Net_SMTP pear install Mail_Mime pear install Mail_mimeDecode 

目录结构:

  1. 在StatusNet程序目录创建“ext”文件夹;
  2. 下载XMPHP,并解压到ext目录;
  3. 下载OAuth.php,保存到ext目录;
  4. 下载PHP OpenID Library,解压Auth目录到ext目录;
  5. 下载PHP Mark down,解压markdown.php到Ext目录;
  H:\13.PHP\04.WORKSPACES\STATUSNET\STATUSNET-0.8.2\EXT │  markdown.php │  OAuth.php ├─Auth │  │  OpenID.php │  ├─OpenID │  │      Association.php │  │      AX.php │  │      BigMath.php │  │      Consumer.php │  │      CryptUtil.php │  │      DatabaseConnection.php │  │      DiffieHellman.php │  │      Discover.php │  │      DumbStore.php │  │      Extension.php │  │      FileStore.php │  │      HMAC.php │  │      HMACSHA1.php │  │      Interface.php │  │      KVForm.php │  │      MemcachedStore.php │  │      Message.php │  │      MySQLStore.php │  │      Nonce.php │  │      PAPE.php │  │      Parse.php │  │      PostgreSQLStore.php │  │      Server.php │  │      ServerRequest.php │  │      SQLiteStore.php │  │      SQLStore.php │  │      SReg.php │  │      TrustRoot.php │  │      URINorm.php │  ├─Services │  │  └─Yadis │  │          HTTPFetcher.php │  │          Manager.php │  │          Misc.php │  │          ParanoidHTTPFetcher.php │  │          ParseHTML.php │  │          PlainHTTPFetcher.php │  │          XML.php │  │          XRDS.php │  │          XRI.php │  │          XRIRes.php │  │          Yadis.php │  └─Yadis │          HTTPFetcher.php │          Manager.php │          Misc.php │          ParanoidHTTPFetcher.php │          ParseHTML.php │          PlainHTTPFetcher.php │          XML.php │          XRDS.php │          XRI.php │          XRIRes.php │          Yadis.php ├─Services │  └─Yadis │          HTTPFetcher.php │          Manager.php │          Misc.php │          ParanoidHTTPFetcher.php │          ParseHTML.php │          PlainHTTPFetcher.php │          XML.php │          XRDS.php │          XRI.php │          XRIRes.php │          Yadis.php └─XMPPHP         BOSH.php         Exception.php         Log.php         Roster.php         XMLObj.php         XMLStream.php         XMPP.php         XMPP_Old.php 

安装成功后,配置config.php:

  • 2.1、指定ext目录:
        $extra_path = array("H:/13.PHP/04.WorkSpaces/statusnet/statusnet-0.8.2/ext/");        set_include_path(implode(PATH_SEPARATOR, $extra_path) . PATH_SEPARATOR . get_include_path()); 
  • 2.2、配置Email发送账号:
        #Email info, used for SMS send. gmail example        $config['mail']['notifyfrom'] = 'test@canbeing.com';        $config['mail']['domain'] = canbeing.com';        # See http://pear.php.net/manual/en/package.mail.mail.factory.php for options        $config['mail']['backend'] = 'smtp';        $config['mail']['params'] = array('host' => 'smtp.canbeing.com',   'port' => 25,   'auth' => true,   'username' => 'test',   'password' => 'test'); 
  • 2.3、设置mysql mdb2 ini文件目录:

$config['db']['ini_statusnet'] = ‘H:/13.PHP/04.WorkSpaces/statusnet/statusnet-0.8.2/classes/statusnet.ini’;

原文参见: http://www.zzbaike.com/wiki/StatusNet%E5%9F%BA%E6%9C%AC%E5%AE%89%E8%A3%85 


http://www.xxcang.com/554.html

没有评论:

发表评论