1. Install required software
1. Install the Java 8 JDK. We recommend that you use the Server JVM which means that you should download the JDK instead of the JRE, because the JRE only comes with the Client JVM.
2. Install a recent version of Tomcat 7 or 8. We currently recommend versions 7.0.78 or 8.5.16. Use the JRE that you installed in step 1.1 (by default this will be C:\Program Files\Java\jre1.8.x_x). In the installation wizard, on the 'Choose Components' panel, deselect Manager and Documentation, then expand the Tomcat item and select Core, Service and Native. Now click Next.
We recommend you install to “C:\tomcat” or “D:\tomcat” rather than in the Program Files directory, to make it easier to administer the web application.
4. Install Ghostscript. For your convenience, here is the Windows installer for Ghostscript. If you are running 64 bit Windows please install the 64 bit version of Ghostscript and make sure to add the installation path to your system's path variable.
5. Install ImageMagick into C:\Program Files\ImageMagick (this is where Asset Bank's default settings expect it to be) and make sure to add the installation path to your system's path variable.
NOTE: when installing ImageMagick 7 or above you must select the "Install legacy components" option otherwise Asset Bank will not function correctly We currently recommend ImageMagick version 126.96.36.199, which can be downloaded here: 32-bit Windows, 64-bit Windows.
6. Install Notepad ++ to ensure that configuration and log files can be edited and viewed efficiently.
7. After installing software make sure that any services that are critical to Asset Bank running (Tomcat, MySQL, SMTP etc.) are set to automatically start up if they stop. This will make sure Asset Bank doesn't require manual intervention to get back up and running if the server ever goes down unexpectedly. If you are planning on connecting Asset Bank to your SQL Server database using Integrated Windows Authentication then you need to run Tomcat as the AD user that will be used to connect.
If the application is considered business critical then you could also set up URL monitoring.
2. Install the Asset Bank application
1. Download the Asset Bank installation package: asset-bank.zip
2. Unzip the installation package to a convenient location on your hard drive.
3. Check the contents:
- asset-bank-database: folder containing database setup scripts
- asset-bank: Asset Bank application files
4. Stop Tomcat (if it is running).
5. Move the directory 'asset-bank' into [Tomcat]/webapps.
6. Add the folder [Tomcat]/webapps/asset-bank/WEB-INF/manager-config/win-tools to your PATH environment variable (ensure that this entry is entered before the ImageMagick path e.g. put it at the start).
If you are not using the default webapp name (e.g. if you renamed the asset-bank directory) then include the corresponding path in the PATH variable. (My Computer > Properties > Advanced > Environment Variables. Path is in the bottom under System Variables.)
3. Configure Tomcat
1. You need to change the default memory allocation for Tomcat as the default is not optimal for a production server.
For Tomcat run as a service: Run the Tomcat Service Manager utility [Tomcat]\bin\tomcat7w.exe, unless you already have this running as a tray icon. On the Java tab, set values for memory pool. We recommend the default settings:
- Initial memory pool=2048
- Maximum memory pool=4096.
2. For Tomcat run from the command line:
Copy the file [Tomcat]\webapps\asset-bank\WEB-INF\manager-config\tomcat\setenv.bat into the directory [Tomcat]\bin and adjust the numbers within (see the comment at the top of the file).
3. Ensure that Tomcat is pointed at the server JVM. On the Java tab, set Java Virtual Machine: C:\Program Files\Java\jdk_version_number\jre\bin\server\jvm.dll
4. Open the file [Tomcat]\conf\server.xml in a text editor and add the attribute URIEncoding="UTF-8" to the “Connector” elements, as shown here:
<Connector port="8080" protocol="HTTP/1.1"
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>
5. Locate the file [Tomcat_Home]/conf/web.xml and search the file for 'JspServlet'. This should return an xml node of <servlet> containing some <init-param> values. You will need to add an additional <init-param> the same as the below.
The resulting block of the web.xml file, once you have inserted the above, should look like the code below.
4. Configurable settings
Asset Bank configuration changes can be made by changing the settings file,[Tomcat]\webapps\asset-bank\WEB-INF\classes\ApplicationSettings.properties.
To make sure that Asset Bank can send emails, then please update the following settings:
# The SMTP server for outgoing emails:
# SMTP PORT (leave blank for default 25)
# SMTP authentication username (leave blank for no authentication)
# SMTP authentication password (optional)
It is possible to change the date formats in Asset Bank. Please refer to this article.
If you are installing an Enterprise version of Asset Bank that has Multi-Language enabled, please refer to this knowledge base article.
5. Install license
You will have received a license file license.lic by email. This is valid for 14 days (for evaluation) or indefinitely (for production).
Copy the license file license.lic to [Tomcat]\webapps\asset-bank\WEB-INF\classes.
6. Set up the database (MySQL)
Follow the database setup instructions in Database & Advanced Setup
7. (Optional) Set up FTP for Bulk Upload
For example, to allow users to upload very large files and it is not possible to map a UNC or network share to the bulk-upload directory users can upload their files for Bulk Uploading using FTP. To enable this you need to install or enable an (s)FTP server.
You will need to create an FTP user, for example called assetbank-ftp. For security reasons this user should be jailed in their home directory.
The property 'bulk-upload-directory' in the ApplicationSettings.properties file should point to the home directory of the FTP user. The easiest way to do this is to create a symbolic link in [tomcat]/asset-bank called 'bulk-upload', pointing to the FTP user's home directory. If you do this then you don't need to change the value of the setting as it is that by default.
Both the FTP user and Tomcat need to be able to read and write to this 'bulk-upload' directory. The easiest way to do this is by ensuring that the Tomcat user and the FTP user are in the same group and giving group read/write permissions on the directory.
8. Integrate Tomcat with IIS
We recommend that you set up IIS to proxy for Tomcat. Please follow the instructions on how setup IIS integration.
9. Start the Application
1. Restart Tomcat. If you have installed Tomcat as a service then you will need to restart the service.
2. Ready to run - you should be able to access the Asset Bank on http://localhost/asset-bank/ from a browser on the server, or http://[server ip address]/asset-bank/
from any other computer on your network. Note: If you did not follow step (5.2) or (8) then you will need to specify port 8080, e.g. http://[server ip address]:8080/asset-bank/
3. The application will start with a “Setup Wizard” which will allow you to easily set up your Asset Bank. Note: On first run the “Setup Wizard” will ask you for a password to prevent access from non-admin users. This password can be changed using the setting setup-wizard-password in the ApplicationSettings file.
4. Login as the default admin user:
5. Change the password of the default admin user ‘admin’ by going to the 'Your Profile' link in the top right. This is important as it is easy to forget that this user exists once you start adding your own, and it is especially important, for obvious security reasons, if your Asset Bank is available online. Alternatively, remember to delete this user as soon as you have added one or more other admin users.
10. Upgrade to the latest version
The installer may not contain the most recent version of Asset Bank. To upgrade your Asset Bank to the latest version (assuming you have a license that allows it), then please follow these instructions.
11. Backup procedure
You need to ensure that the database and files are backed up regularly (we advise nightly). Please follow the link to see more information on backing up Asset Bank
The disc usage of the Asset Bank installation should also be monitored to ensure that the application does not run out of room. This includes where the Asset Bank assets are stored and the Tomcat logs.
12. If you want to uninstall Asset Bank
Please proceed to uninstall all of the pre-requisite software - as mentioned in step 1 - and drop the database that was generated during step 6. To complete the uninstall, stop Tomcat, delete the Tomcat]\webapps\asset-bank folder and restart Tomcat. You may also wish to revert changes to your Tomcat installation as mentioned in step 5 and changes made to your web server in step 8.