目前日期文章:200709 (7)

瀏覽方式: 標題列表 簡短摘要
1.
下載 Discuz! 6.0.0
wget 'http://download.discuz.net/6.0.0/Discuz!_6.0.0_TC_UTF8.zip'

2.
解壓縮
unzip 'Discuz!_6.0.0_TC_UTF8.zip'

3.
將 upload 內資料夾內的所有檔案搬到 論壇資料夾下
cp * ~/WWW/forum

4.
將論壇資料夾下,以下的資料夾與檔案 變更權限為 777
* ./templates
* ./attachments
* ./customavatar
* ./forumdata
* ./forumdata/cache
* ./forumdata/templates
* ./forumdata/threadcaches
* ./forumdata/logs

chmod -R 777 templates
chmod 777 attachments customavatar forumdata forumdata/cache forumdata/templates forumdata/threadcaches /forumdata/logs

5.
編輯設定檔 config.inc.php
設定以下資訊
$dbhost = 'localhost';                             // database server
$dbuser = 'dbuser';                                // database username
$dbpw = 'dbpw';                                      // database password
$dbname = 'discuz';                               // database name
$adminemail = 'admin@your.com';    // admin email
$dbreport = 0;                                          // send db error report? 1=yes, 0=no

以下安裝說明沒說,但小弟建議先行設定
$cookiepre = 'cdb_';                               // prefix of cookie
$tablepre = 'cdb_';                                  // prefix of table in database

6.
執行安裝
http://domain_name/forum/install.php

沒問題的話就安裝成功了

smalldd 發表在 痞客邦 PIXNET 留言(1) 人氣()

1.
從 Zend 網站下載 Zend Optimizer 3.3.0
由於 Zend 下載必須先登入
所以必須用瀏覽器下載

2.
解壓縮
tar zxvf  ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz

3.
進入資料夾
cd  ZendOptimizer-3.3.0a-linux-glibc21-i386

4.
執行安裝程式
./install.sh

5.
設定 Zend Optimizer 安裝資料夾
/usr/local/Zend

6.
設定 php.ini 位置
/etc/php5/apache2

7.
確認使用 Apache Web Servery
Yes

8.
設定 Apache control utility (apachectl) 位置
/usr/sbin/apache2ctl

9.
接著安裝程式告知以下訊息
The following configuration changes have been made:
- The php.ini file has been relocated from /etc/php5/apache2 to /usr/local/Zend/etc
 - A symbolic link for the php.ini file has been created in /etc/php5/apache2.
 - The original php.ini was backed up to   /etc/php5/apache2/php.ini-zend_optimizer.bak

10.
最後安裝程式要求重新啟動 apache

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

雖然說 xoops 跟 ubuntu 似乎扯不上什麼關係,還是硬扯一下XD

1.
下載 xoops 2.0.16
http://xoops.tnc.edu.tw/
這過程讓我很無言,我得先用瀏覽器下載,再用ftp丟到主機上
wget不能直接下載

2.
解壓縮
tar zxvf xoops-2.0.16-tw-utf8.tgz

3.
將資料夾 xoops-2.0.16-tw-utf8 下資料夾 html 裡面的所有檔案與資料夾放到網站根目錄資料夾下

4.
接著用瀏覽器開啟 http://domain_name/
依著說明跟著做

5.
將資料夾 uploads cache templates_c 和檔案 mainfile.php 變更屬性
sudo chmod 777 uploads cache templates_c
sudo chmod 666 mainfile.php

6.
全部設定完,刪除資料夾 install
rm -r install
變更 mainfile.php 權限
chmod 444 mainfile.php

ok! 大功告成

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

1.
安裝apache2
sudo apt-get install apache2

2.
安裝php5
sudo apt-get install php5

3.
安裝mysql
sudo apt-get install mysql-server-5.0 mysql-client

4.
安裝php5的mysql資源庫
sudo apt-get install php5-mysql

5.
設定 mysql 密碼
mysqladmin -u root -p 'PASSWORD'
但是這只有設定 localhost  的 root 密碼

若要設定其他 root 密碼可使用 phpmyadmin 設置

6.
設定 mysql 預設 charset
sudo vim /etc/mysql/my.cnf
在 [client] 下增加
default-character-set=utf8
在 [mysqld] 下增加
default-character-set=utf8
default-collation=utf8_general_ci

7.
設定 default site document
sudo vim /etc/apache2/sites-enabled/000-default
將 /var/www/ 改變成 主網站的資料夾
順便將 phpmyadmin 的連結 移至主網站資料夾下
mv /var/www/phpmyadmin /home/sd/www/phpmyadmin

若要增加 virtual host
則要在 /etc/apache2/sites-avaible 下新增設定檔
用 a2ensite / a2dissite 啟動/關閉設定檔

8.
設定 apache2 的 local 使用者的 網站資料夾
sudo vim /etc/apache2/mods-enabled/userdir.conf
把 public_html 換成 想要的 資料夾名稱,如:WWW
如此一來 apache2 會將
http://domain_name/~user
直接對映至 user/WWW

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

/etc/apt/source.list

#
# deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070418)]/ feisty main restricted

#deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070418)]/ feisty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-updates main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty multiverse
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty multivers

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security main restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security main restricted
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security universe
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed restricted main multiverse universe
deb http://archive.ubuntu.com/ubuntu/ feisty-backports restricted main multiverse universe
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ feisty-security multiverse

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

本例以scim輸入法為例

1.
sudo apt-get install scim-qtimm

2.
im-switch -z all_ALL -s scim
將scim設為所有語系的預設輸入法

3.
Ctrl + Alt + Backspace
重新啟動GUI介面

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

1.
設定時間
sudo date "09010522"
格式是 "月日時分"



藉由"國家時間與頻率標準實驗室"校正時間
sudo ntpdate time.stdtime.gov.tw

2.
將硬體時間與系統時間同步
sudo hwclock -w

smalldd 發表在 痞客邦 PIXNET 留言(0) 人氣()

找更多相關文章與討論