{"id":17922,"date":"2015-10-20T15:03:41","date_gmt":"2015-10-20T20:03:41","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17922"},"modified":"2022-12-15T06:54:38","modified_gmt":"2022-12-15T12:54:38","slug":"install-and-configure-exo-platform-with-nginx-as-a-reverse-proxy-on-a-debian-8-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-and-configure-exo-platform-with-nginx-as-a-reverse-proxy-on-a-debian-8-vps\/","title":{"rendered":"Install and configure eXo Platform with Nginx as a reverse proxy on a Debian 8 VPS"},"content":{"rendered":"
eXo Platform is an out-of-the-box social intranet solution written in Java. It allows developers to build modern business portals with complete collaborative and content management features.<\/p>\n
With eXo you can also create social intranets with rich collaboration features such as wikis, forums, calendars and documents smartly integrated around activity streams, social networking and workspaces. It is carefully designed to instantly engage users. It runs within the trusted security of an enterprise platform and is highly customizable to adapt when your needs evolve.<\/p>\n
<\/p>\n
In this article, we will cover the steps needed for installing eXo Platform on a Debian 8 VPS<\/a>.<\/p>\n REQUIREMENTS<\/strong><\/p>\n We will be using our SSD 4 Linux VPS<\/a> Hosting plan for this tutorial.<\/p>\n Login to your server via SSH<\/p>\n You can check whether you have the proper version of Debian installed on our server with the below command:<\/p>\n Which should give you the underneath output:<\/p>\n UPDATE THE SYSTEM<\/strong><\/p>\n Make sure your server is fully up to date. Also, install wget and unzip:<\/p>\n INSTALL ORACLE JAVA 7<\/strong><\/p>\n In order to run eXo Platform, you need to install Java on your server. Therefore, add the Java PPA repository in your Debian system. Then install Oracle Java 7 with the following commands:<\/p>\n Update the package index and install Java 7:<\/p>\n Check if Java has been properly installed:<\/p>\n You should receive the following output:<\/p>\n INSTALL eXo<\/strong><\/p>\n We will download and unzip eXo in the \/opt<\/strong><\/em> directory. Run the below commands:<\/p>\n Rename and move the unpacked installation into the \/usr\/share<\/strong><\/em> directory:<\/p>\n Once that is done, you can start eXo. But, let’s not get ahead of ourselfs. First we need to install Nginx.<\/p>\n INSTALL NGINX<\/strong><\/p>\n Basically what you need to do is to install Nginx and setup a configuration file so you can run eXo from your domain.<\/p>\n Install, start and enable Nginx to start on boot with the three below commands:<\/p>\n Now, open a new Nginx configuration file.<\/p>\n Once opened, paste the following:<\/p>\n Do not forget to replace your_domain with your actual domain.<\/p>\n Enable the new configuration by creating a sym link:<\/p>\n Restart Nginx:<\/p>\n The last thing you need to do is to start eXo Platform. We will use the below command to start eXo as a background process:<\/p>\n You can stop eXo with:<\/p>\n Now, open your favorite browser and navigate to http:\/\/your_domain. You will be welcomed by a page like the one in the underneath image:<\/p>\n <\/p>\n Do the configuration according to your needs and finish the eXo Platform installation.<\/p>\n Congratulations, you have successfully installed eXo Platform on your Debian 8 VPS<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services in which case you can simply ask our expert Linux admins to install eXo Platform for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" eXo Platform is an out-of-the-box social intranet solution written in Java. It allows developers to build modern business portals with … <\/p>\n# ssh root@server_ip<\/pre>\n
# lsb_release -a<\/pre>\n
Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 8.2 (jessie)\r\nRelease: 8.2\r\nCodename: jessie<\/pre>\n
# apt-get update && apt-get upgrade\r\n\r\n# apt-get install unzip wget<\/pre>\n
# echo \"deb http:\/\/ppa.launchpad.net\/webupd8team\/java\/ubuntu trusty main\" | tee \/etc\/apt\/sources.list.d\/webupd8team-java.list\r\n \r\n# echo \"deb-src http:\/\/ppa.launchpad.net\/webupd8team\/java\/ubuntu trusty main\" | tee -a \/etc\/apt\/sources.list.d\/webupd8team-java.list\r\n\r\n# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886<\/pre>\n
# apt-get update\r\n\r\n# apt-get install oracle-java7-installer<\/pre>\n
# java -version<\/pre>\n
java version \"1.7.0_80\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_80-b15)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)<\/pre>\n
# cd \/opt\r\n\r\n# wget http:\/\/sourceforge.net\/projects\/exo\/files\/latest\/download -O eXo-Platform-community.zip\r\n\r\n# unzip eXo-Platform-community.zip<\/pre>\n
# mv platform-community-* platform-community\r\n\r\n# mv platform-community \/usr\/share\/platform-community<\/pre>\n
# apt-get install nginx\r\n\r\n# systemctl start nginx\r\n\r\n# systemctl enable nginx<\/pre>\n
# nano \/etc\/nginx\/sites-available\/exo<\/pre>\n
upstream exo {\r\n server 127.0.0.1:8080;\r\n}\r\n\r\nserver {\r\n listen 80;\r\n server_name your_domain;\r\n\r\n access_log \/var\/log\/nginx\/exo.access.log;\r\n error_log \/var\/log\/nginx\/exo.error.log;\r\n\r\n proxy_buffers 16 64k;\r\n proxy_buffer_size 128k;\r\n\r\nlocation \/ {\r\n proxy_pass http:\/\/exo;\r\n proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;\r\n proxy_redirect off;\r\n\r\n proxy_set_header Host $host;\r\n proxy_set_header X-Real-IP $remote_addr;\r\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n proxy_set_header X-Forwarded-Proto https;\r\n }\r\n\r\n}<\/pre>\n
# ln -s \/etc\/nginx\/sites-available\/exo \/etc\/nginx\/sites-enabled\/<\/pre>\n
# service nginx restart<\/pre>\n
# \/usr\/share\/platform-community\/start_eXo.sh &<\/pre>\n
# \/usr\/share\/platform-community\/stop_eXo.sh<\/pre>\n