AnsweredAssumed Answered

Installation of Alfresco on Windows as a service

Question asked by fjodor on Nov 13, 2006
Latest reply on Apr 28, 2009 by derek
It took me quite a while to find out how to get Alfresco running as a service in Windows. The trick is to NOT start Alfresco after installation but from the start  configure it as a service.

This is complete installation procedure:

Installation procedure for Alfresco on Windows 2003 server.

Prerequisites:
- MySql server (v4.1)

Run setup, you can do a default or custom installation.

After setup is finished do not start Alfresco via 'Start Alfresco Server'
in the Start menu! Also do not use the batch file to start Alfresco!

Copy <Alfresco>\bin\imconvert.exe to C:\WINDOWS\system32

See <Alfresco>\README_mysql.txt and configure Alfresco for use with MySql as described:
Open a command prompt and CD to <Alfresco>\extras\databases\mysql\
Run db_setup.bat
Remove these 3 files from <Alfresco>\tomcat\shared\classes\alfresco\extension:
- custom-db-and-data-context.xml
- custom-db-connection.properties
- custom-hibernate-dialect.properties

Configure Alfresco to be run by Tomcat as a service:

Open a command prompt and CD to <Alfresco>\tomcat\bin
Type "set CATALINA_HOME=<Alfresco>\tomcat"
Run "service.bat install"

Set the service to start automatically.

Add the following to the SYSTEM PATH:
…..;<MySql>\bin;<Alfresco>\java\bin;<Alfresco>\tomcat\bin

Run <Alfresco>\tomcat\bin\tomcat5w.exe
Configure the options like those in <Alfresco>\alfresco.bat
On the Java tab:
Point the Java Virtual Machine to <Alfresco>\java\jre\bin\client\jvm.dll
and the Java classpath to <Alfresco>\tomcat\bin\bootstrap.jar
add the Java options:
-Dcatalina.base=<Alfresco>\tomcat
-Dcatalina.home=<Alfresco>\tomcat
set the memory options:
Initial memory pool: 128 Mb
Maximum memory pool: 512 Mb
Thread stack size: 64 Mb
(you can change these accoording to the amount of memory your system has)

Reboot!

Login to http://localhost:8080/ (user admin, password admin)

Goto the Administration Console, Manage System Users, 'Show all' and change the admin password.

If you have a firewall running, you might want to open port 8080 to give others access to Alfresco.

Outcomes