Install as service

When installing Enonic XP on a standard production server, you will want to set it up to run as a service.

First, make sure the correct version of Java is installed on your system. See Install Java for guidance.

Linux

Install with script

Attention

The script is written for and tested on Ubuntu / CentOS. For other distrubutions, the manual installation may be neccessary.

Prerequisites
  • User with sudo rights
  • Java JRE 1.8+ installed
  • /lib/lsb/init-functions installed
  1. Download the Enonic XP distribution
  2. Unzip the distributiopn
  3. Run script: sudo ./enonic-xp-6.15.5/service/install_service.sh
  4. Optional: Set JAVA_HOME and JAVA_OPTS variables in /etc/xp.conf
  5. Start service: sudo service xp start
  6. Check log: sudo tail -f /home/xp/enonic/xp/logs/server.log

Manual installation

See Linux install as service detailed

Windows

Info on running XP as a service in windows will come later.