“The ThaiBSD.COM” Q & A <div class="qandaset"> <h2 class="title">“The ThaiBSD.COM” Q & A</h2> <dl> <dt>1. การติดตั้ง FAMP แบบ ดานาส ** </dt> <dt>2. ติดตั้ง perl? </dt> <dt>3. การติดตั้ง MySQL4.1 ผ่าน Ports </dt> </dl> <table border="0" summary="Q and A Set"> <tbody> <tr class="question"> <td align="left" valign="top">1.</td>

การติดตั้ง FAMP แบบ ดานาส **

</tr> <tr class="answer"> <td align="left" valign="top"> <pre class="programlisting">โปรแกรมที่ติดตั้ง การเรียกใช้ 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 </pre> </td> </tr> <tr class="question"> <td align="left" valign="top">2.</td>

ติดตั้ง perl?

</tr> <tr class="answer"> <td align="left" valign="top"> <pre class="programlisting">การติดตั้ง Perl5.8 top <div class="procedure"> <ol> <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">3.</td>

การติดตั้ง MySQL4.1 ผ่าน Ports

</tr> <tr class="answer"> <td align="left" valign="top"> <pre class="programlisting">แนะนำให้ติดตั้ง MySQL ก่อนเป็นอันดับแรกนะครับ สำหรับการติดตั้งโปรแกรมทั้ง 4 ตัวข้างต้น top <div class="procedure"> <ol> <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>