瞎折腾

搞事情

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

最近想搞个2-plan team看看,是不是适合小型团队任务管理

下了个包,解压了,发现里面的readme太简单了
readme中的install相关的内容如下
### Installation instructions ###

    1. Unpack the archive.
    2. Upload everything, including the empty /files and /templates_c folders, to your server.
           (Optionally you need to create /templates_c and /files manually before installation.)
        3. Make the following folders & files writable:
                - /templates_c
                - /files
                - /config/standard/config.php
        4. Create a new MySQL database for 2-plan.
        5. Point your browser to install.php and follow the instructions given.
        6. If the installation was successful, delete install.php and update.php. 
没LAMP基础伤不起啊,求助了万能的google,总算搞定了
 
下面是具体过程
1. 安装 lamp的相关系列软件
sudo apt-get install tassel
sudo tasksel install lamp-server
安装过程中会要输入mysql的root密码,这个密码之后管理mysql和创建2-plan的数据库时需要用到
 
2.上传2-plan-team组件
mkdir 2-plan-team
tar xvf 2-plan-team.tgz -C 2-plan-team
cp -r 2-plan-team /var/www
#改变目录的权限,使apache能够操作
sudo chown www-data:www-data /var/www/2-plan-team -R
 
3.更改apache的配置指向上面的目录
        DocumentRoot /var/www/2-plan-team

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
改完重启apache服务器
sudo service apache2 restart
 
4.添加2-plan使用的用户和数据库
4.1 创建用户
sudo service apache2 restart
输入1中提到的root的密码
mysql> GRANT ALL PRIVILEGES ON *.* TO username@localhost IDENTIFIED BY “password";
# username既是数据库使用者的用户名,password既是该用户的密码
mysql>exit
退出
4.2 创建数据库
使用新创建的密码登录
mysql -u username -p
输入4.1中的用户密码
mysql>create database 2plan
创建了名为2plan的数据库
 
5. 安装2-plan
浏览器中输入http://servername/install.php
servername是你的服务器名字或者ip,本地的服务器就是localhost,这里的话是192.168.1.101
就会出现如下内容:
step 1:设定语言和自检
 
step 2:设定数据库参数
Database host :mysql服务器的host名字,这边是localhost
Database name: 前面4.2创建的数据库名字, 2plan
Database user: 4.1中创建的用户也是创建了2plan数据库的用户
Database password:用户的密码
Database table prefix:数据库创建的表的前缀
输入完成之后continue
 
step 3:创建管理员账号
输入要创建的管理员的账号和密码,然后congtinue
 
安装完成登录即可
 
收尾
删除install.php和update.php
sudo rm -f /var/www/2-plan-team/install.php /var/www/2-plan-team/update.php
 
 
 
posted on 2014-01-09 23:19  secularbird  阅读(4674)  评论(2编辑  收藏  举报