OS:CentOS 5.3
Requirments:
php 5.2
1. 安裝套件
yum install httpd php php-devel php-mysql mysql mysql-server
service httpd start; service mysqld start
mysqladmin -u root password '管理者密碼'
2. 下載source code
wget http://tracmor.googlecode.com/files/tracmor-0.3.0.tar.gz
3. 搬移source code到網頁根目錄底下
tar -zxvf tracmor-0.3.0.tar.gz
mv tracmor-0.3.0/ /var/www/html/tracmor
cd /var/www/html/tracmor
4. 建立網站專用資料庫
mysql -u root -p
create database tracmor;
quit
5. 匯入tracmor sql data
cd data_model
mysql -u root -p tracmor < create.sql
mysql -u root -p tracmor < data.sql
6. 修改網站組態檔
cd ../includes
vi configuration.inc.php
define ('__DOCROOT__', '/var/www/html/tracmor');
define ('__SUBDIRECTORY__', '/tracmor'); [如果是使用"虛擬主機"的配置,這裡請留白]
define('DB_CONNECTION_1', serialize(array(
'adapter' => 'MySqli5',
'server' => 'localhost',
'port' => null,
'database' => 'tracmor',
'username' => 'root',
'password' => 'daniel',
'profiling' => false)));
7. 測試
http://tracmor server IP/tracmor
參考文章
http://www.tracmor.com/
http://code.google.com/p/tracmor/downloads/list
http://www.tracmor.com/forum/topic/13/tracmor-open-source-install/
沒有留言:
張貼留言