Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Tuesday, June 11, 2013

Installation ApacheDS on RHEL6

การติดตั้ง ApacheDS (Apache Directory Server) บน RHEL6 นั้น สามารถทำได้โดย download จาก

    http://directory.apache.org/apacheds/downloads.html

โดยสามารถเลือก download ได้ทั้งแบบ Fedora RPM และ Binary file ซึ่งในที่นี้ผมจะใช้การติดตั้งแบบ Binary file ครับ

1. เมื่อ download มาแล้วให้ใช้สิทธิ root ติดตั้งดังนี้
     su -
     chmod 777 apacheds-2.0.0-M12-64bit.bin
     ./apacheds-2.0.0-M12-64bit.bin

2. yes สำหรับ license agreement หลังจากนั้นหากใช้ค่า default ให้พิมพ์ enter ในทุกคำถามหรือหากต้องการปรับเปลี่ยนก็ใช้พิมพ์ค่าที่เราต้องการเข้าไป

3. คำสั่งที่ใช้สำหรับ start server คือ
   /opt/apacheds-2.0.0-M12/bin/apacheds start default

4. ตรวจสอบสถานะของ server
   /opt/apacheds-2.0.0-M12/bin/apacheds status default

ในขั้นตอนนี้หากพบว่าไม่สามารถ start ได้
[root@localhost bin]# ./apacheds start default
Starting ApacheDS - default...
[root@localhost bin]# ./apacheds status default
ApacheDS - default is not running.
[root@localhost bin]#

ให้ลองใช้
/opt/apacheds-2.0.0-M12/bin/apacheds console default

ถ้าเจอเรื่องเกี่ยวกับ java permission ดังนี้
[root@localhost bin]# ./apacheds console default
Running ApacheDS - default...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 1    | wrapper  | Unable to start JVM: Permission denied (13)
wrapper  | There were 1 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- br="" stopped="" wrapper=""> 

ก็ให้จัดการ install java หรือ export path ให้รู้จัก java ครับ เสร็จแล้วลอง start ใหม่ดู
[root@localhost bin]# ./apacheds status default
ApacheDS - default is running (57441).

[root@localhost bin]# netstat -a | grep 389
tcp        0      0 *:10389                     *:*                         LISTEN