2014-11-08

Installing WSO2 Identity-Server on Ubuntu 14.04

Because it's not packaged, here are the steps to install WSO2 Identity Server on Ubuntu 14.04
This tutorial is a no brain compilation of this two websites:
https://docs.wso2.com/display/IS500/WSO2+Identity+Server+Documentation
http://ubuntuhandbook.org/index.php/2014/02/install-oracle-java-6-7-or-8-ubuntu-14-04/

Use it carefully !!!


Let's go root, we'll create a user for wso2 later
$ sudo -s

Install Sun JAVA JDK 7
# add-apt-repository ppa:webupd8team/java
# apt-get update
# apt-get install oracle-java7-installer
# apt-get -y install oracle-java7-set-default
# apt-get -y install activemq unzip subversion maven

Let's create a wso2 user to run the app
# useradd --home /opt/wso2
# cd /opt/wso2
# wget http://product-dist.wso2.com/products/identity-server/5.0.0/wso2is-5.0.0.zip
# unzip wso2is-5.0.0.zip
# chown -R wso2 /opt/wso2


Let's enable boot start
# echo '#! /bin/sh
export JAVA_HOME="/usr/lib/jvm/java-7-oracle"
startcmd="/opt/wso2/wso2is-5.0.0/bin/wso2server.sh start > /dev/null &"
restartcmd="/opt/wso2/wso2is-5.0.0/bin/wso2server.sh restart > /dev/null &"
stopcmd="/opt/wso2/wso2is-5.0.0/bin/wso2server.sh stop > /dev/null &"

case "$1" in
start)
   echo "Starting WSO2 Application Server ..."
   su -c "${startcmd}" wso2
;;
restart)
   echo "Re-starting WSO2 Application Server ..."
   su -c "${restartcmd}" wso2
;;
stop)
   echo "Stopping WSO2 Application Server ..."
   su -c "${stopcmd}" wso2
;;
*)
   echo "Usage: $0 {start|stop|restart}"
exit 1
esac' > /etc/init.d/wso2-is

# chmod +x /etc/init.d/wso2-is
# update-rc.d wso2-is defaults

Finally start the service:
# service wso2-is start

and point you browser on https://[YourServerIP]:9443

Then read this documentation:
https://docs.wso2.com/display/IS500/Running+the+Product

To add soon
Add a custom SSL certificate

No comments:

Post a Comment

Popular posts