samira samilan
ตอนที่ ๓ ตัวอย่างของจริง QandA or FAQ’s
ตัวอย่างข้างบน ( qanda.xml) ได้ทดลองสร้าง โดยไป copy กระทู้ของ ครูมานิส แล้วเอาไป paste บน text editor แล้ว กำหนดตั้ง header ให้ถูกต้อง จากนั้นก็เอา tags ต่างๆ ที่เกี่ยวกับ QandA ครอบหน้าหลัง เท่านั้นเอง
เมื่อได้ file QandA.xml เนื่องจากเราจะเอาขึ้น web เราก็ให้มันออกมาในรูป ของ html โดยออกคำสั่งแปลงโฉมมัน
xalan -o qanda.html qanda.xml /dir_where_book_xsl_locate/book.xsl
แค่นี้ มันก็จะให้ qanda.html มาให้เรา พอมี ข้อมูลเพิ่ม เราก็เอาข้อมูลใหม่ ปะเข้าไปตอนท้ายของ qanda.xml แล้ว แปลงโฉมใหม่
qanda.html ที่ได้ ก็จะมาในรูป ( ข้อมูลนี้ เป็น utf-8 และท่านสามารถ copy & paste เอาไปลองได้เลย ในเวป ของท่าน )
QandA.html
========================================
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>"The ThaiBSD.COM" Q & A</title>
<link rel="stylesheet" href="ss.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="qandaset">
<h2 class="title">"The ThaiBSD.COM" Q & A</h2>
<dl>
<dt>1. <a href="http://gotoknow.org/blog/naigod/post#N005EEC90N00848894">การติดตั้ง FAMP แบบ ดานาส **</a>
</dt>
<dt>2. <a href="http://gotoknow.org/blog/naigod/post#N005EEC90N00848924">ติดตั้ง perl?</a>
</dt>
<dt>3. <a href="http://gotoknow.org/blog/naigod/post#N005EEC90N008489D8">การติดตั้ง MySQL4.1 ผ่าน Ports </a>
</dt>
</dl>
<a name="example.anchor.1"></a>
<table border="0" summary="Q and A Set">
<col align="left" width="1%">
<tbody>
<tr class="question">
<td align="left" valign="top"><a name="N005EEC90N00848894"></a><a name="N005EEC90N008488B8"></a><b>1.</b></td><td align="left" valign="top">
<p>การติดตั้ง FAMP แบบ ดานาส **</p>
</td>
</tr>
<tr class="answer">
<td align="left" valign="top"></td><td align="left" valign="top">
<pre xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" xmlns:xverb="com.nwalsh.xalan.Verbatim" xmlns:lxslt="http://xml.apache.org/xslt" class="programlisting">
โปรแกรมที่ติดตั้ง การเรียกใช้ URL
Freebsd 6.0
cvsup
Perl <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets/cgi-bin/test.cgi " target="_top">http://www.thecyberoutlets/cgi-bin/test.cgi</a>
apache2 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets.com/ " target="_top">http://www.thecyberoutlets.com/</a>
MySQL4.1
PHP5.0.4 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets.com/test.php" target="_top">http://www.thecyberoutlets.com/test.php</a> ใช้ได้
phpMyAdmin 2.6.3 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets/pma/ " target="_top">http://www.thecyberoutlets/pma/ </a>
ZendOptimizer-2.5.7-i386
unzip552.tar.gz
Mambo <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets/mambo/index.php" target="_top">http://www.thecyberoutlets/mambo/index.php</a>
phpsysinfo-2.3 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets.com/phpsysinfo-" target="_top">http://www.thecyberoutlets.com/phpsysinfo- </a>
dev/index.php ใช่ได้
Webalizer 2.01 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets.com/webalizer/" target="_top">http://www.thecyberoutlets.com/webalizer/ </a>
openwebmail 2.51 <a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://www.thecyberoutlets.com//cgi-" target="_top">http://www.thecyberoutlets.com//cgi- </a>
bin/openwebmail/openwebmail.pl
mrtg-2.12.2,1
</pre>
</td>
</tr>
<tr class="question">
<td align="left" valign="top"><a name="N005EEC90N00848924"></a><a name="N005EEC90N00848948"></a><b>2.</b></td><td align="left" valign="top">
<p>ติดตั้ง perl?</p>
</td>
</tr>
<tr class="answer">
<td align="left" valign="top"></td><td align="left" valign="top">
<pre xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" xmlns:xverb="com.nwalsh.xalan.Verbatim" xmlns:lxslt="http://xml.apache.org/xslt" class="programlisting">
การติดตั้ง Perl5.8
<a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://gotoknow.org/blog/naigod/post#example.anchor.1">top</a>
<div class="procedure">
<ol type="1">
<li>#cd /usr/ports/lang/perl5.8 </li>
<li>เนื่องจากมีเวอร์ชั่นเก่าที่ติดตั้งมาพร้อม FreeBSD อยู่ก่อนแล้ว ให้จัดการลบออกก่อน </li>
<li>#make deinstall && make clean </li>
<li>เริ่มติดตั้ง </li>
<li>#make \
? WITHOUT_PERL_64BITINT=yes \
? WITH_THREADS=yes \
? ENABLE_SUIDPERL=yes \ </li>
<li>? install clean </li>
</ol>
</div>
</pre>
</td>
</tr>
<tr class="question">
<td align="left" valign="top"><a name="N005EEC90N008489D8"></a><a name="N005EEC90N008489FC"></a><b>3.</b></td><td align="left" valign="top">
<p>การติดตั้ง MySQL4.1 ผ่าน Ports </p>
</td>
</tr>
<tr class="answer">
<td align="left" valign="top"></td><td align="left" valign="top">
<pre xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim" xmlns:xverb="com.nwalsh.xalan.Verbatim" xmlns:lxslt="http://xml.apache.org/xslt" class="programlisting">
แนะนำให้ติดตั้ง MySQL ก่อนเป็นอันดับแรกนะครับ
สำหรับการติดตั้งโปรแกรมทั้ง 4 ตัวข้างต้น
<a xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" href="http://gotoknow.org/blog/naigod/post#example.anchor.1">top</a>
<div class="procedure">
<ol type="1">
<li>$ su </li>
<li># cd /usr/ports/databases/mysql41-server </li>
<li># make \ </li>
<li>install clean </li>
<li># pico /etc/rc.conf </li>
<li>เพิ่มคำสั่ง mysql_enable=”YES” เข้าไป </li>
<li>reboot เครื่องใหม่ </li>
<li>สามารถทดลองเรียกใช้งานได้ด้วยคำสั่ง mysql </li>
<li>เพื่อความปลอดภัยให้ใส่รหัสเพื่อเข้าไปใช้ MySQL </li>
<li>ด้วยคำสั่ง mysqladmin ดังนี้ </li>
<li># /usr/local/bin/mysqladmin -u root password 'password ที่ต้องการ' </li>
<li># /usr/local/bin/mysqladmin -u root -h servername password 'password ที่ต้องการ' </li>
<li>สำหรับ MySQL ก็ติดตั้งเสร็จเรียบร้อยสามารถใช้งานได้แล้ว</li>
<li># mysql -u root -pzxcvbn
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22 to server version: 4.1.10a
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> exit </li>
</ol>
</div>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
========================================
หวังว่า บทความนี้ จะทำให้ท่านได้ ความรู้ เข้าใจ เรืองการสร้าง document ในองค์กรใหญ่ ต่างๆ รวมทั้ง FreeBSD.org ซึ่งอาศัย Docbook technology ในการสร้างเอกสารต่างๆ
หมายเหตุ ขอบคุณ คุณครู ยุทธนา แม่นผล( อ. บัวเชค จ.สุรินทร์) ที่ได้ชี้ให้เห็นประโยชน์ของ xml & docbook technology ทำให้ผู้เขียนได้เข้าไป ศึกษาและได้รับประโยชน์จาก technology นี้ เป็นอันมาก
หากผู้ใดมีข้อข้องใจ ผู้เขียน ยินดีตอบคำถาม ในเรื่องที่เขียนมาเล่าใฟ้ฟัง
HTH
Samira samilan
ที่มา :: http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=6402
1. | การติดตั้ง FAMP แบบ ดานาส ** |
โปรแกรมที่ติดตั้ง การเรียกใช้ URL Freebsd 6.0 cvsup Perl http://www.thecyberoutlets/cgi-bin/test.cgi apache2 http://www.thecyberoutlets.com/ MySQL4.1 PHP5.0.4 http://www.thecyberoutlets.com/test.php ใช้ได้ phpMyAdmin 2.6.3 http://www.thecyberoutlets/pma/ ZendOptimizer-2.5.7-i386 unzip552.tar.gz Mambo http://www.thecyberoutlets/mambo/index.php phpsysinfo-2.3 http://www.thecyberoutlets.com/phpsysinfo- dev/index.php ใช่ได้ Webalizer 2.01 http://www.thecyberoutlets.com/webalizer/ openwebmail 2.51 http://www.thecyberoutlets.com//cgi- bin/openwebmail/openwebmail.pl mrtg-2.12.2,1 | |
2. | ติดตั้ง perl? |
การติดตั้ง Perl5.8 top | |
3. | การติดตั้ง MySQL4.1 ผ่าน Ports |
แนะนำให้ติดตั้ง MySQL ก่อนเป็นอันดับแรกนะครับ สำหรับการติดตั้งโปรแกรมทั้ง 4 ตัวข้างต้น top |