X-BLC OpensourceCMS » Blog » Document » Install X-BLC

Install X-BLC

Step 0 : System-requirement

X-BLC ถูกออกแบบมาให้มีความต้องการต่อระบบน้อยที่สุดเท่าที่จะเป็นไปได้ และใช้เครื่องมือที่มีตามเวบเซิฟเวอร์โดยทั่วไป (ซึ่งเป็นหลักการพื้นฐานของโปรแกรม CMS อยู่แล้ว) อันได้แก่

  • PHP4 (4.3.3 or greater) or PHP5
  • MySQL (4.1 or grater)
  • Apache with mod_php

Step 1 : Download and untar (or unzip)

เมื่อมีเครื่องมือทั้ง 3 ชิ้นข้างต้นแล้ว สามารถดาวน์โหลดโปรแกรมเพื่อไปใช้งานได้ที่ xblc-current.tar.bz2 หรือ xblc-current.zip จากนั้นให้แตกไฟล์ที่ได้ออกแล้วคัดลอกไปยัง แฟ้มหลักของเวบเซิฟเวอร์ (เช่น /var/www/ ใน *NIX)

Document Document

bow_der_kleine bow_der_kleine

Step 2 : Setup

ในแฟ้มหลักของ X-BLC จะประกอบไปด้วย แฟ้มต่าง ๆ 9 แฟ้ม (cache, config, files, include, install ,module,section, themes, xml) และไฟล์ 3 ไฟล์ (index.php, README.txt, LICENSE.txt) ให้ทำการแก้ไขไฟล์ setup.php ซึ่งอยู่ในแฟ้ม include (include/setup.php) ซึ่งมีหน้าตาประมาณนี้

  1. <?php
  2. // X-BLC 0.1 support only mysql.
  3. define(DB_TYPE,'mysql');
  4.  
  5. // Database
  6. define(DB_USER,'login name for database');
  7. define(DB_NAME,'your database name');
  8. define(DB_HOST,'your database host example localhost');
  9. define(DB_PASS,'database password');
  10.  
  11. // X-BLC 0.1 support only th.
  12. define(LANGUAGE,'th');
  13.  
  14. // Please put slash ('/') at the end of this parameters.
  15. // example: 'http://mydomain/' is a valid parameter
  16. // but 'http://mydomain' is a invalid parameter
  17. // example: '/my/root/path/' is a valid parameter
  18. // but '/my/root/path' is a invalid parameter
  19.  
  20. define(ROOT_URI,'http://mydomain/xblc/install/');
  21. define(ROOT_PATH,'/var/www//xblc/install/');
  22. ?>
plain code

ให้ถูกต้องตรงตามข้อมูลของเวบเซิฟเวอร์ ค่าที่ควรระวังเป็นพิเศษคือค่า ROOT_URI และ ROOT_PATH ที่ต้องมี "/" ตามท้ายเสมอ

Step 3 : Directories permission

การกำหนดสิทธิในการแก้ไขแฟ้มต่าง ๆ ที่อยู่ในโปรแกรม X-BLC มีผลต่อการทำงานของโปรแกรม ซึ่งแฟ้มต่าง ๆ ที่มีรายชื่อข้างล่างมนลิสต์ข่างล่าง ต้องได้รับการกำหนดสิทธิการแก้ไขให้เป็น 0767 หรือ drwxr-xrwx หรือ เจ้าของมีสิทธิ์ อ่าน เปิด แก้ไข คนในกลุ่มมีสิทธิ อ่าน เปิด และคนอื่น ๆ มีสิทธิ อ่าน เปิด แก้ไข ซึ่งการกำหนดสิทธิเหล่านี้สามารถทำได้บนเซิฟเวอร์ที่ใช้ระบบปฏิบัติการ *NIX (UNIX, Linux, *BSD, Solaris etc.) เท่านั้น สำหรับเวบเซิพเวอร์ทีใช้ระบบปฏิบัติการ Windows ให้แก้ไขแฟ้มต่าง ๆ เหล่านี้ ให้สามารถได้รับการแก้ไขได้ในระหว่างการใช้งาน

xblc/files

xblc/files/categories

xblc/files/member

xblc/files/user_logo

xblc/files/misc

xblc/files/imageitem

xblc/config/blocks

xblc/config/cache

xblc/config/config

xblc/config/feed

xblc/config/form

xblc/config/items

xblc/config/menus

xblc/config/panels

xblc/config/users

xblc/cache

xblc/themes/default/templates

xblc/themes/default/css

xblc/section

xblc/xml

xblc/include/Smarty/templates_c

Step 4 : Installation

เมื่อทำสามขั้นตอนแรกเรียบร้อยแล้ว ใหใช้เวบบราวเซอร์เปิดไปที่ URL http://yourdomain/install ซึ่ง http://yourdomain/ คือค่า ROOT_URI ที่ถูกกำหนดใน include/setup.php

เมื่อเปิดไปที่ URL ดังกล่าวจะพบโปรแกรมติดตั้งโปรแกรม X-BLC ซึ่งมีขั้นตอนการติดตั้งห้าขั้นตอน อันได้แก่

  • Step 0 : License
  • Step 1 : Setup validation
  • Step 2 : Permission validation
  • Step 3 : Root-Login information
  • Step 4 : Run installation
ขั้นตอนที่ต้องกรอกข้อมูจริง ๆ มีเพียงขั้นตอนที่ 3 เท่านั้น และในขั้นตอนนี้จะมีการกรอกข้อมูลเพียง 5 ช่องเท่านั้น ในขั้นตอนที่ 1 และ 2 มีขึ้นเพียงเพื่อตรวจสอบการตั้งค่าของระบบ ส่วนในขั้นตอนที่ 0 และ 4 มีขึ้นเพื่อแจ้งข้อมูลต่อผู้ใช้ ดังนั้นจึงถือได้ว่า X-BLC เป็นโปรแกรมที่มีขั้นตอนการติดตั้งที่สั้นมาก

Step 5 : And now ... you can use it

เมื่อติดตั้งเรียบร้อยแล้ว ผู้ใช้งานสามารถใช้งานโปรแกรม ผ่าน URL ที่กำหนดใน include/setup.php (ROOT_URI) ได้ทันที

ส่วนประกอบสำคัฐของ X-BLC คือ Control Panel ที่จะมีส่วนประกอบแตกต่างออกไปตามสิทธิของผู้ใช้ ในนั้นจะประกอบด้วย ชื่อผู้ใช้ ชื่อ Section และเครื่องมือการบริหารเวบต่าง ซึ่งมีหน้าตาดังนี้

image

การใช้งาน X-BLC ในขั้นแรก ผมแนะนำว่าให้โหลดโมดูลที่ต้องการใช้มาจาก Control Panel => System Admin => manage modules ก่อน จากนั้นจึงกำหนดค่าของระบบที่ Control Panel => System Admin => configuration จากนั้นจึงจัดการกับ Block & Menu ที่ Control Panel => Block & Menu แล้วจึงจัดการกับส่วนอื่น ๆ ของเวบไซท์ต่อไป

05 Sep 06 | by | tags Document

read 1431

<<X-BLC 0.1.1 and Demo || X-BLC Features>>

ความคิดเห็น (click here to comment)


Navigation

New in Forum

Login