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.
- 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 \bin\imconvert.exe to C:\WINDOWS\system32
See \README_mysql.txt and configure Alfresco for use with MySql as described:
Open a command prompt and CD to \extras\databases\mysql\
Remove these 3 files from \tomcat\shared\classes\alfresco\extension:
Configure Alfresco to be run by Tomcat as a service:
Open a command prompt and CD to \tomcat\bin
Type "set CATALINA_HOME=\tomcat"
Run "service.bat install"
Set the service to start automatically.
Add the following to the SYSTEM PATH:
Configure the options like those in \alfresco.bat
On the Java tab:
Point the Java Virtual Machine to \java\jre\bin\client\jvm.dll
and the Java classpath to \tomcat\bin\bootstrap.jar
add the Java options:
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)
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.