2 plan team 服務器搭建


最近想搞個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
 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM