使用XAMPP快速安装配置Open Atrium团队协作系统


1. 什么是Open Atrium
Open Atrium 是一套基于Drupal的内部网工具包,它预置了自定义面板、博客、手册、日历、任务分配系统、团队微博这六项功能,支持会员分组,每个分组都可以设置自己的界面和功能。

Open Atrium是基于Drupal框架构建的,除具备Drupal常用的功能外,Open Atrium还有以下独特的亮点:
博客:可以作为内部讨论工具,发表观点和评论。支持邮件通知,当有人对您的博客发表了评论的时候,系统会发送邮件到您的邮箱,您也可以通过邮件直接回复,回复内容会同步到团队内部系统上。
手册:相当于组织内部的维基百科,可以让团队成员共同编辑文档,查看修订版本,还可以生成适合打印的版本,是个知识管理的好工具。
日历:快速添加活动事件,支持发布多天事件,还可以通过订阅导入外部日历服务(如google calendar)里的事件。
任务分配系统:完善的任务分配及项目管理系统,可以让项目管理者明确分配任务,并及时跟踪项目进度。
团队微博:类似于新浪微博,可以让团队成员间快速分享信息。
自定义面板:类似于google的igoogle,您可以在自定义面板上添加各种组件,比如团队动态,事件预报,最新评论等。让您等对各项团队活动一目了然。

Open Atrium可以做什么?
根据Open Atrium的功能特性,Open Atrium比较适合做企业内联网和和团队内部协作系统也可以用来做项目管理系统、知识管理系统等。由于是开源软件,依托Drupal海量的模块库和本身良好的架构,Open Atrium具有很好的可扩展性和可定制性,能够满足您对于内部网的个性话需求。

2. 安装配置XAMPP
$ wget http://nchc.dl.sourceforge.net/project/xampp/XAMPP%20Linux/1.7.7/xampp-linux-1.7.7.tar.gz
$ sudo tar xvf xampp-linux-1.7.7.tar.gz
$ sudo mv lampp /opt/

$ sudo chown -R nobody.root /opt/lampp/
$ sudo vim /opt/lampp/etc/extra/httpd-xampp.conf

...
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>
...
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    #Deny from all
    Allow from all
    Allow from ::1 127.0.0.0/8 \
           fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
           fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

$ sudo /opt/lampp/lampp startmysql
$ sudo /opt/lampp/lampp startapache

$ sudo /opt/lampp/lampp security

XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password: heydevops
XAMPP: Password (again): heydevops
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password: heydevops
XAMPP: Password (again): heydevops
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password: heydevops
XAMPP: Password (again): heydevops
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password: heydevops
XAMPP: Password (again): heydevops
XAMPP: ProFTPD isn't running...
XAMPP: Done.

$ /opt/lampp/bin/mysql -uroot -pheydevops

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 52
Server version: 5.5.27 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

$ sudo vim /opt/lampp/etc/php.ini

...
; disabled in XAMPP 1.7.2 because incompatible with PHP 5.3.0
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/opt/lampp/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
...

$ sudo /opt/lampp/lampp restartapache

访问XAMPP控制面板(如:IP地址为192.168.92.136):
http://192.168.92.136/xampp/index.php
Username: lampp
Password: heydevops

$ sudo vim /opt/lampp/htdocs/xampp/lang/en.php

...
$TEXT['status-mmcache']="PHP extension eAccelerator";
$TEXT['status-mmcache-url']="http://www.apachefriends.org/faq-lampp-en.html#mmcache";
$TEXT['status-oci8']="PHP extension OCI8/Oracle";
...

$ export LANG=zh_CN.GBK
$ sudo vim /opt/lampp/htdocs/xampp/lang/zh.php

...
$TEXT['status-oci8']="PHP扩展库OCI8/Oracle";
...

$ sudo vim /opt/lampp/htdocs/xampp/cds.php

...
if(@$_REQUEST['action']=="getpdf")
{
    mysql_connect("localhost","root","heydevops");
...
if(!mysql_connect("localhost","root","heydevops"))
{
    echo "<h2>".$TEXT['cds-error']."</h2>";
    die();
}
mysql_select_db("cdcol");
...

3. 安装配置openatrium
$ wget http://ftp.drupal.org/files/projects/openatrium-7.x-2.0-alpha5-core.tar.gz
$ tar xvf openatrium-7.x-2.0-alpha5-core.tar.gz
$ mv openatrium-7.x-2.0-alpha5 openatrium
$ sudo mv openatrium /opt/lampp/htdocs/
$ sudo chown -R nobody.root /opt/lampp/
$ sudo vim /opt/lampp/etc/php.ini

...
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 196M
...

$ sudo /opt/lampp/lampp restartapache
$ sudo /opt/lampp/bin/mysql -uroot -pheydevops

mysql> create database openatrium;
mysql> grant all on openatrium.* to 'openatrium'@'localhost' identified by 'heydevops';

$ sudo vim /opt/lampp/etc/my.cnf

...
max_allowed_packet = 256M
...

$ sudo /opt/lampp/lampp stopmysql
$ sudo /opt/lampp/lampp startmysql

访问Open Atrium主页(如:IP地址为192.168.92.136)
http://192.168.92.136/openatrium

接着,就是按照与Drupal相同的方式,完成安装向导。
而完成之后,也才意味着刚刚开始,具体如何在创建和配置Open Atrium页面,如何使用,这些都需要更多的学习和探索。

  1. No comments yet.
(will not be published)
*