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.
Install with script¶
The script is written for and tested on Ubuntu / CentOS. For other distrubutions, the manual installation may be neccessary.
- User with sudo rights
- Java JRE 1.8+ installed
- Download the Enonic XP distribution
- Unzip the distributiopn
- Run script:
- Optional: Set JAVA_HOME and JAVA_OPTS variables in
- Start service:
sudo service xp start
- Check log:
sudo tail -f /home/xp/enonic/xp/logs/server.log
Info on running XP as a service in windows will come later.