Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:adm:czechidm_installation [2020/02/03 08:32]
urbanl [8. Adjust Tomcat's classpath] Uprava formátování
tutorial:adm:czechidm_installation [2020/03/12 09:30]
urbanl [2. JDBC driver installation ​- CentOS7 ​]
Line 38: Line 38:
 **CentOS** **CentOS**
  
-Install the package with PostgreSQL JDBC driver:+Download PostgreSQL JDBC driver from [[https://jdbc.postgresql.org/download.html|official page]]. 
 +In this example we download version 42.2.11.
  
 <code bash> <code bash>
-yum install -y postgresql-jdbc+wget https://jdbc.postgresql.org/download/postgresql-42.2.11.jar -P /usr/share/java/
 </code> </code>
  
Line 47: Line 48:
  
 <code bash> <code bash>
-ln -s /usr/share/java/postgresql-jdbc.jar /opt/tomcat/current/lib/+ln -s /usr/share/java/postgresql-42.2.11.jar /usr/share/java/postgresql-jdbc.jar
 </code>  </code> 
  
Line 276: Line 277:
 # System.getProperty("user.home")/idm_data will be used if no path is given # System.getProperty("user.home")/idm_data will be used if no path is given
 idm.sec.core.attachment.storagePath=/opt/czechidm/data idm.sec.core.attachment.storagePath=/opt/czechidm/data
 +
 +# Max file size of uploaded file. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
 +spring.servlet.multipart.max-file-size=100MB
 +spring.servlet.multipart.max-request-size=100MB
 </file> </file>
  
Line 342: Line 347:
 Apache Tomcat has to know where the new configuration is. Because CzechIdM uses SpringBoot project, we simply add the **/opt/czechidm/etc** directory (and others) on the classpath. Apache Tomcat has to know where the new configuration is. Because CzechIdM uses SpringBoot project, we simply add the **/opt/czechidm/etc** directory (and others) on the classpath.
  
-Create new file **/opt/tomcat/current/bin/setenv.sh** with following ​content:+Create new file **/opt/tomcat/current/bin/setenv.sh** with following ​content:
  
 <code bash:> <code bash:>
Line 389: Line 394:
 Copy the identity manager WAR into webapps folder in Tomcat and name it **idm.war**: Copy the identity manager WAR into webapps folder in Tomcat and name it **idm.war**:
 <code> <code>
-cp idm-app-9.4.0.war /opt/tomcat/current/webapps/idm.war +cp idm-app-9.4.0.war /opt/tomcat/current/webapps/idm.war 
-chown tomcat:tomcat /opt/tomcat/current/webapps/idm.war+chown tomcat:tomcat /opt/tomcat/current/webapps/idm.war
 </code> </code>
 Start the Tomcat container:<code> Start the Tomcat container:<code>
  • by kralikf