Diễn đàn tin học | Tutorial Room

Cài đặt Ikonboard version 3
(được viết bởi Nguyễn Bá Thành)

17/01/2002

Ikonboard là một trong số những phần mềm forum miễn phí tốt nhất và thông dụng nhất hiện nay. Ikonboard được viết bằng Perl và không đòi hỏi thêm gì nên bạn có thể install Ikonboard trên bất cứ server nào hỗ trợ CGI và Perl. Tuy nhiên Ikonboard cũng hỗ trợ mySQL và PostgreSQL, nếu bạn có thêm 1 trong 2 món này nữa thì sẽ rất là tuyệt.

Nào, bắt đầu:

Download Ikonboard
Bạn có thể download Ikonboard ở địa chỉ http://members.ikonboard.com/. Version mới nhất của Ikonboard vào thời điểm bài viết này là version 3.0.1.

Giải nén Ikonboard
Sau khi download, bạn sẽ được một file .zip hoặc .gz, bạn có thể dùng WinZip để giải nén file zip này vào một thư mục nào đó (lúc giải nén nhớ chọn mục Use folder names để giữ nguyên cấu trúc thư mục của Ikonboard).

Giả sử bạn đã giải nén Ikonboard vào thư mục IB301 thì trong thư mục IB301 sẽ có thêm các thư mục con sau:
DOCS: chứa các tài liệu hướng dẫn của Ikonboard
IB2-IB3_UPGRADING: dùng để nâng cấp từ version 2 lên version 3
IB3_UPLOAD: các file chính của chương trình Ikonboard 3
TOOLS: một số tiện ích kèm theo Ikonboard
UPGRADE_RCS: dành cho việc nâng cấp

Upload Ikonboard lên server
Trước khi upload, bạn làm các bước chuẩn bị như sau:

- bạn vào thư mục IB3_UPLOAD\CGI_BIN,
- mở file installer.cgi ra và xem dòng đầu tiên của file này: #!/usr/bin/perl. Đây là đường dẫn đến chương trình Perl, bạn hãy chỉnh lại cho đúng với cấu hình trên server của bạn. Thông thường sẽ là #!/usr/bin/perl hoặc #!/usr/local/bin/perl. Bạn có thể hỏi bên server mà bạn host để biết chi tiết về đường dẫn đến Perl trên server. Sau đó bạn thêm dòng này vào ngay sau dòng #!/usr/bin/perl ở trên: use CGI::Carp qw(fatalsToBrowser carpout);. Dòng use CGI...này có mục đích là sẽ thông báo ra browser một số lỗi (nếu có) thay vì chỉ thông báo là Error 500 như bình thường (việc này sẽ giúp bạn một phần nào đó biết được chương trình của mình bị lỗi là do đâu.
- bạn tiếp tục mở file ikonboard.cgi ra và tiếp tục làm tương tự như trên.

Sau bước chuẩn bị, bạn hãy upload các file trong thư mục IB3_UPLOAD lên server. Chú ý:
- Các file .cgi .pl .pm .html phải được upload ở chế độ ASCII, các file khac (.tar) upload ở chế độ binarry. Đa số các chương trình FTP sẽ tự động nhận dạng file và chuyển sang chế độ thích hợp cho bạn.
- Các file .cgi phải được upload vào thư mục cho phép chạy cgi.
- Sau khi upload, bạn hãy chmod các thư mục thành thuộc tính 755, các file .cgi thành 755.
Để đơn giản, bạn hãy upload tất các các file và thư mục con của thư mục IB3_UPLOAD\CGI-BIN vào thư mục cgi-bin trên server của bạn, upload các file và thư mục con của IB3-UPLOAD\PUBLIC_HTML (trong trường hợp này thì chỉ có một thư mục là iB_html) vào thư mục iB_html (thư mục iB_html bạn có thể đặt ngang cấp với thư mục cgi-bin, hoặc thậm chí là 1 thư mục con của cgi-bin như mặc định của Ikonboard cũng được).

Cài đặt Ikonboard

Bước 1:
Bạn hãy mở browser và truy cập vào file installer.cgi trên server. Ví dụ: trang web của bạn có địa chỉ là http://www.mysite.com và bạn upload ikonboard vào thư mục cgi-bin thì bạn truy cập vào file installer.cgi như sau: http://www.mysite.com/cgi-bin/installer.cgi.

Nếu mọi việc xảy ra đúng, bạn sẽ nhận được 1 bảng thông tin như sau. Chú ý rằng ở cột bên phải, thay vì thấy các chữ Yes, bạn thấy các chữ No thì bạn hãy xem lại phần upload và chmod.

iB System Profiler

.

iB System Profiler

Can the installer write into the directory 'INSTALL_DATA'?

Yes

Can the installer write into the file 'ikonboard.conf'?

Yes

Is my perl installation ok?

Yes

Is the CGI.pm module installed?

Yes

Can I use the mySQL version of Ikonboard?

Yes

Do I have the DB_File library installed (for DBM database)?

Yes

What DBM library will my system use?

DB_File

Recommended Installation

We recommend that you use the DBM database for your board. This will be sufficient for small to meduim sized boards. In the future, you might want to consider installing the DBI modules and mySQL.

We also recommend that you ask your webhost about mySQL. Your perl installation supports mySQL. If you have access to a mySQL database, then we suggest you use the mySQL option.

Next Action

Proceed with the installation

Nếu bạn nhận được lỗi ở bươc này (file installer.cgi không chạy được) thì bạn hãy xem thử nó thông báo lỗi gì và tìm cách giải quyết. Các lỗi thường gặp nhất là: khai báo đường dẫn đến chường trình perl không đúng, chưa chmod 755 cho thư mục và các file .cgi.

Bạn click vào Proceed with the installation để sang bước 2.

Bước 2:
Bạn sẽ tiếp tục nhận được một bảng thông tin như sau.

Installation: Step One

.

Board paths and other set-up information

We need to know some information before we can continue. This step asks for the paths and URL's to your board. Please double check the information before proceeding.

Your CGI Path?

Your NON-CGI Path?

Your CGI URL?

Your NON-CGI URL?

Email address for incoming emails

Email address for outgoing emails

Which email program would you like to use?:

Path to Sendmail (if using sendmail!)

Address of the SMTP server (if using an SMTP server!)

Website Name

Board Name

Board Description

Website URL

Bạn khai báo các thông tin như sau:

- Your CGI Path: đường dẫn thực sự đến thư mục chứa Ikonboard, trong trường hợp này là d:/fox/www/ibtest/cgi-bin. Bạn hỏi thêm thông tin ở bên server để biết được đường dẫn đến thư mục của bạn.
- Your NON-CGI Path: đường dẫn thực sự đến thư mục iB_html, trong trường hợp này là d:/fox/www/ibtest/iB_html
- Your CGI URL: địa chỉ đến Ikonboard, trong trường hợp này là http://localhost:8000/ibtest/cgi-bin.
- Your NON-CGI URL: địa chỉ đến thư mục iB_html, trong trường hợp này là http://localhost:8000/ibtest/iB_html.
- Email address for incoming emails: bạn điền vào địa chỉ của Admin hoặc Webmaster.
- Email address for outgoing emails: bạn điền vào địa chỉ của Admin hoặc Webmaster.
- Which email program would you like to use: bạn chọn là Send mail nếu server là Unix/Linux, chọn là smtp nếu server là Windows.
- Path to Sendmail (if using sendmail!): đường dẫn đến chương trình sendmail (nếu bạn chọn phần Send mail ở bước trên). Bạn liên hệ với bên server để biết thông tin về đường dẫn đến file sendmail; thường là /usr/sbin/sendmail.
- Address of the SMTP server (if using an SMTP server!): địa chỉ của SMTP server (nếu bạn chọn smtp ở bước trên). Bạn liên hệ với bên server để biết thông tin về địa chỉ SMTP của server, hoặc bạn có thể tìm và sử dụng một số SMTP server miễn phí trên internet (search ở Google.com).
- Website Name: tên-tiêu đề cho trang web của bạn.
- Board Name: tên-tiêu đề cho forum.
- Board Description: phần mô tả ngắn gọn cho forum.
- Website URL: địa chỉ đến trang chủ của bạn (có thể là http://www.mysite.com).

Đã xong, bạn click vào nut PROCEED để sang bước tiếp theo.

Bước 3:
Nếu mọi chuyện êm đẹp thì bạn sẽ thấy một bảng thông tin như sau:

Installation: Step One

.

Checking entered information

Before we proceed, lets take a moment to check the information entered. Below is a table of the required directories and their writable state.

Directory

Exists?

Writable?

d:/fox/www/ibtest/cgi-bin/BACK_UP

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Data

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Database

Yes

Yes

d:/fox/www/ibtest/cgi-bin/INCOMING

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Languages

Yes

Yes

d:/fox/www/ibtest/cgi-bin/OUTGOING

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Skin

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Sources

Yes

Yes

d:/fox/www/ibtest/iB_html/uploads

Yes

Yes

Everything appears to be correct. You may either go back to make any changes, or proceed to the next step.

Ở 2 cột bên phải, nếu bạn thấy một chữ No nào đó thì bạn hãy kiểm tra lại bước upload và chmod.

Click vào PROCEED để tiếp tục.

Bước 4:
Bạn sẽ tiếp tục nhận được 1 bảng thông tin như sau:

Installing Ikonboard Files

.

Installing the ikonboard files

We now need to install the ikonboard files. The official ikonboard distribution contains these files in tar archives. This makes it easier to upload and set the permissions on. However, some webhosts have a file upload limit which the tar files exceed, or your system cannot untar these archives. If you've already extracted the files from the tar archives, then choose the approriate option. If you have uploaded the tar archives (in BINARY), the installer will then proceed to extract them for you. To save system resources, this is done in steps with a page refresh in between, please don't stop the page from loading or you may experience errors.

Which installation method?

Nếu bạn đã upload các file .tar (bạn nên làm thế) thì bạn hãy chọn Extract the tar archives for me trong phần Which installation method? và click vào PROCEED để tiếp tục.

Bước 5:
Bạn sẽ tiếp tục nhận được 1 bảng như sau:

Installing Ikonboard Files

.

Tar archive set up.

Remove old ikonboard files before installing new?
This will remove any custom skin installations you may have.

Remove any old databases (members and posts)?

Click PROCEED để tiếp tục.

Bước 6:
Ikonboard sẽ giải nén và cài đặt cho bạn:

Installing Ikonboard Files

.

Tar archive extraction in progress

Stand by as we continue to extract the tar archives...
Just extracted Database.tar

Click here if your browser does not forward you

Bạn hãy đợi cho đến khi Ikonboard cài đặt xong:

Installing Ikonboard Files

.

Installing the ikonboard files

The tar archives have been extracted successfully.

You may proceed to the next step.

Bạn click PROCEED để tiếp tục.

Bước 7:
Sau khi Ikonboard cài đặt xong bạn sẽ nhận được 1 bảng thông báo như sau:

Installing Ikonboard Files

.

Checking Ikonboard file structures

Before we proceed, lets take a moment to check the information entered. Below is a table which provides information on populated ikonboard directories.

Directory

Exists?

Populated?

d:/fox/www/ibtest/cgi-bin/Data

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Database

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Languages

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Skin

Yes

Yes

d:/fox/www/ibtest/cgi-bin/Sources

Yes

Yes

d:/fox/www/ibtest/iB_html

Yes

Yes

Everything appears to be installed successfully, you may proceed to the next step.

Ở 2 cột bên phải, nếu tất cả đều là Yes thì xem như bạn đã thành công. Click PROCEED để tiếp tục

Bước 8:
Ikonboard sẽ hiển thị 1 bảng cho bạn cài đặt database. Bạn hãy chọn DBM trong mục Which database would you like to use? Bạn cũng có thể dùng mySQL hoặc PostgreSQL (nếu vậy thì bạn đã là dân chuyên nghiệp rồi, các thông số của mySQL và pgSQL bạn tự cài đặt nhé {smile}):

iB Database Set-up

.

Database set up

We now need to set up the database. Please select which database type you'd like to use. If selecting mySQL, you must have the required modules installed. The installer will check this.

Which database would you like to use?

Click PROCEED để tiếp tục.

Bước 9:
Bạn đã cài đặt xong phần database, nếu mọi chuyện êm đẹp thì bạn sẽ nhận được bảng thông tin này:

iB Database Set-up

.

Database set up Complete

The database set up procedure is now complete.

You may now proceed.

Click PROCEED, bạn sẽ nhận được thêm 1 bảng thông báo:

iB Database Population

.

iB Database Population

Ikonboard now needs to populate your database. This includes entering template, member group and other such information.
You may proceed.

Tiếp tục click PROCEED:

iB Database Population

.

Database Population Complete

The default database has now been installed.

You may now proceed to the final step and set up an administration account.

Click PROCEED để sang bước cuối cùng.

Bước 10:
Ikonboard sẽ cho phép bạn cài đặt account Admin cho forum:

iB Admin Creation

.

iB Administration Account Creation

The last step is to create an administration account to allow you access to the extensive adminstrative control panel. Please double check all the information you enter before continuing.

Your desired member name

Your password

Please re-enter your password

Your email address

Please re-enter your email address

Bạn điền vào đầy đủ các thông tin rồi click PROCEED...DONE! Account admin đã được tạo xong. Bạn hãy click PROCEED để bắt đầu sử dụng forum.

iB Admin Creation

.

iB Administration Account Creation

Your administration account has been set up successfully.

You may now proceed to log into your board.

Suggested steps after logging in.

  • Click on the link "AdminCP" found above the navigation bar

  • Log into the AdminCP

  • Create a new category

  • Create a new forum

  • Try a test post

Thế là bạn đã cài đặt xong Ikonboard, chúc mừng bạn!

Chú ý: sau khi cài đặt xong, bạn nên xoá file installer.cgi trên server để bảo đảm an toàn!

Bạn có thể sử dụng miễn phí các tài liệu ở đây cho mục đích học tập, tham khảo hoặc nghiên cứu cá nhân. Miễn là bạn phải giữ nguyên các ghi chú về bản quyền và các ghi chú khác của Diễn đàn tin học trong tài liệu!
Nếu bạn muốn sử dụng các tài liệu cho
mục đích khác, xin bạn hãy liên hệ trực tiếp với Diễn đàn tin học Admin hoặc tác giả của tài liệu!


PcLeHoan 1996 - 2002
Mirror : http://www.pclehoan.com
Mirror : http://www.lehoanpc.net

Mirror : http://www.ktlehoan.com