2008/Dec/13

ปัญหาเมื่อติดตั้ง Elastix เสร็จ แล้วเข้าไปเพิ่มเพลงรอสาย จะปรากฏข้อความแจ้งปัญหาดังนี้

In Freepbx Music On Hold does not encode due to LAME not being installed the user will get the following error:

"Error Processing: "sh: lame: command not found" for holdmusic.mp3!"


และแก้ปัญหาด้วยการใช้คำสั่ง yum install ก็ยังใช้ไม่ได้

LAME is not in the standard YUM repos but can be installed from the DAG repo by typing:

ต้องติดตั้งจากที่นี่จึงจะใช้ได้ครับ

rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/lame-3.97-1.el5.rf.i386.rpm [^]

This then resolves the issue.

เพิ่มเติมได้ที่ http://www.elastix.org/mantis/print_bug_page.php?bug_id=15

2008/Dec/08

สำหรับท่านที่ต้องการที่จะสร้างหน้า Web แต่มีชื่อเรียกเข้าไปหลายๆ ชื่อหรือที่เรียกว่า Virtual host นั้น

ใน Apache ของ ubuntu สามารถแก้ไขได้ที่

/etc/Apache2/sites-enables/000-default 

จากนั้น ก็ทำการเพิ่มข้อความเข้าไปเช่น

<VirtualHost *>

ServerAdmin xyz@crop.opp

        DocumentRoot /var/www/it 
        ServerName  it.ctext.or.th
               
                Options FollowSymLinks
                AllowOverride None
                         
            
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                   

แล้วบันทึก จากนั้นก็ Restart อีกที

/etc/init.d/apache2 restart 

ก็เรียบร้อยครับ

2008/Nov/09

โดยปรกติผมจะใช้ packgate ของ debrain  เพราะปรกติแล้ว ubuntu ก็มาจาก Debrain นั้นเองดังนั้นจึงสามารถใช้คำสั่งติดตั้ง packgate ของ Debrain ได้  ก็ให้ download ไฟล์สำหรับติดตั้งที่เป็นนามสกุล .deb มาแล้วใช้คำสั่งดังนี้

dpkg -i webmin_xxxx_all.deb  <- แล้วแต่รุ่นของไฟล์ที่ได้มานะครับ

แต่เนื่องจากการติดตั้งจะต้องใช้ไฟล์ lib บางอัน เราสามารถทำได้สองอย่างคือ

  1. ต้องสั่งให้ระบบทำการหาสิ่งที่ขาดมาติดตั้ง โดยใช้คำสั่ง
    apt- get install -f
  2. ต้องทำการติดตั้งไฟล์ประกอบเอง โดยมีไฟล์ดังนี้ 
    apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

เท่านี้ก็ติดตั้งได้เรียบร้อยแล้ว เราก็เข้าไปใช้งานได้ที่
https://localhost:10000 หรือชื่อที่เรากำหนดไว้ึครับ

และหากต้องการที่เปลี่ยนรหัสผ่านของ Webmin ก็ทำได้ดังนี้

Webmin User Password Change

If you want to change root password in webmin use this included Perl script:

 /usr/share/webmin/changepass.pl /etc/webmin root

edit @ 9 Nov 2008 17:11:23 by ((((((( I love Linux )))))))

edit @ 13 Dec 2008 10:30:35 by ((((((( I love Linux )))))))