I would like to install the OpenSource OpenOLAT on my Ubuntu 22.04, but I fail every time I try.
Further information and details about the installation and the OpenSource can be found here:
https://www.openolat.com/fileadmin/adminwiki/SW5zdGFsbGF0aW9u.html
Would anyone be able to help me with this problem? I have already tried various instructions, but to no avail. I don't know what the reason for this could be.
I have tried to install the application in accordance to the below mentioned manual:https://www.openolat.com/fileadmin/adminwiki/SW5zdGFsbGF0aW9u.html
The manuel I used is mentioned below:
Connect to your Ubuntu Server:Open PuTTY and enter your server's IP address.Click "Open" to establish a connection.Log in with your username and password.Create a user for OpenOlat:bashCopy codesudo useradd -m -s /bin/bash openolatDownload software:bashCopy codecd && mkdir downloads && cd downloadswget https://adoptopenjdk.net/releases/17.html -O adoptopenjdk.tar.gzwget https://tomcat.apache.org/download-10.cgi -O apache-tomcat.tar.gzwget https://www.openolat.com/releases/openolat_1723.warPrepare home directory:bashCopy codecdtar xvf downloads/apache-tomcat-10.1.5.tar.gzln -s apache-tomcat-10.1.5 tomcattar xvf downloads/adoptopenjdk.tar.gzln -s jdk-17.0.6+10 jreunzip -d openolat-17.2.3 downloads/openolat_1723.warln -s openolat-17.2.3 webappCreate tomcat dirs:bashCopy codemkdir tomcat/bin tomcat/conf tomcat/lib tomcat/run tomcat/logsLink necessary files:bashCopy codecd ~/tomcat/confln -s ../../tomcat/conf/web.xml web.xmlcd ~/tomcat/binln -s ../../tomcat/bin/catalina.sh catalina.shcdln -s tomcat/bin/startup.sh startln -s tomcat/bin/shutdown.sh stopCreate setenv.sh file:bashCopy codeecho 'CATALINA_HOME=~/tomcatCATALINA_BASE=~JRE_HOME=~/jreCATALINA_PID=~/run/openolat.pidCATALINA_TMPDIR=/tmp/openolatmkdir -p $CATALINA_TMPDIRCATALINA_OPTS=" \-Xmx1024m -Xms512m -XX:MaxMetaspaceSize=512m \-Duser.name=openolat \-Duser.timezone=Europe/Zurich \-Dspring.profiles.active=myprofile \-Djava.awt.headless=true \-Djava.net.preferIPv4Stack=true \-XX:+HeapDumpOnOutOfMemoryError \-XX:HeapDumpPath=. \"'>> ~/bin/setenv.shCreate server.xml file:bashCopy codeecho '<?xml version="1.0" encoding="utf-8"?><Server port="8085" shutdown="SHUTDOWN"><Service name="Catalina"><Connector port="8088" protocol="HTTP/1.1" /><Engine name="Catalina" defaultHost="localhost"><Host name="localhost" appBase="webapps" /></Engine></Service></Server>'>> ~/conf/server.xmlSet environment variables:bashCopy codeecho 'export CATALINA_BASE=~export CATALINA_HOME=~/tomcatexport JRE_HOME=~/jre'>> ~/.bashrcsource ~/.bashrcTest Tomcat:bashCopy code./startSet up PostgreSQL:Follow the PostgreSQL setup instructions in the provided guide.OpenOlat configuration:bashCopy codeecho 'db.source=jndidb.jndi=java:comp/env/jdbc/openolatDSdb.vendor=postgresqlinstallation.dir=/home/openolatlog.dir=/home/openolat/logsserver.contextpath=/openolatserver.domainname=localhostserver.port=8088server.port.ssl=0smtp.host=disabledtomcat.id=1userdata.dir=/home/openolat/olatdata'>> ~/lib/olat.local.propertiesCreate Application context descriptor:bashCopy codemkdir -p ~/conf/Catalina/localhost/echo '<?xml version="1.0" encoding="UTF-8" ?><Context path="" docBase="/home/openolat/webapp" debug="0" reloadable="false" allowLinking="true"><Resource name="jdbc/openolatDS" auth="Container" type="javax.sql.DataSource" maxTotal="16" maxIdle="4" maxWaitMillis="60000" username="oodbu" password="oodbpasswd" driverClassName="org.postgresql.Driver" validationQuery="SELECT 1" validationQueryTimeout="-1" testOnBorrow="true" testOnReturn="false" url="jdbc:postgresql://localhost:5432/oodb"/></Context>'>> ~/conf/Catalina/localhost/ROOT.xmlConfigure log4j2:bashCopy codeecho '<?xml version="1.0" encoding="UTF-8"?><Configuration status="WARN"><!-- Insert the log4j2 configuration here as provided in the guide --></Configuration>'>> ~/lib/log4j2.xmlStart OpenOlat:bashCopy code./startAccess OpenOlat:Open your browser and go to http://localhost:8088Login with username: administrator, password: openolatNow you should have OpenOlat up and running on your Ubuntu server. Happy testing!