Академический Документы
Профессиональный Документы
Культура Документы
com/2013/03/11/step-by-step-installation-alfresco-community-4-2-c-windows/
After the high interest of the installation tutorial under Ubuntu plaform, in
this post is shared the installation of Alfresco Community 4.2.c on
Windows Server 2008 R2 Standard 64bit with Apache Tomcat 7.0.30 and
PostgreSQL 9.0.10. The purpose installation is not the bundle installation
but a more robust for an enterprise conguration. As we like and prefer
the installation is a step by step list of commands and tasks simpler to
understand, to do and to test. Hope youll be agree.
Before starting
In this tutorial I use a brand new Windows Server 2008 R2 Standard 64bit installationwith a user called alfresco, dierent
from the Administrator user. Connected as alfresco user:
JDK 1.7u7
http://www.oracle.com/technetwork/java/javase/downloads/index.html
java -version
ImageMagick6.7.9-4
To enable image manipulation in Alfresco, we have to install and congureImageMagick.
Ocial site:http://www.imagemagick.org/script/binary-releases.php#windows
Binaries:http://imagemagick.spd.co.il/binaries/
First of all download GhostScript 9.06(gs906w64.exe)used to render PDF documents, from Google Code.
Installgs906w64.exe in C:Alfrescogs9.06.
Download ImageMagick-6.7.9-4-Q16-windows-x64-static.exe from here.
convert.exe -version
SWFTools 0.9.1
SWFTools is a collection of utilities to work with Adobe Flash les (SWF les).
Download it from http://www.swftools.org/download.html.
pdf2swf.exe -V
C:AlfrescoLibreOfficeprogramsoffice.exe
Lets discuss about tuning.Alfresco requires that Oce runs headless as a hidden process. To do that:
C:AlfrescoLibreOfficeprogramsoffice.exe "-accept=socket,host=localhost,port=8101;
urp;StarOffice.ServiceManager" -nologo -headless
To check the Oce processes: open the task manager where there are two dierent processes called soce.exe
*32 and soce.bin *32.
Select soce.exe *32 and terminate the process. Also the other will be terminated.
Click on Start -> Digit notepad++.exe C:AlfrescoLibreOcestart_oo.bat and create a new le.
@echo off
rem -----------------------------
rem - -
rem - START Resident OpenOffice -
rem - -
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
ATTENTION: A command window will be opened with no content and never closed. Dont worry, close it and everything will
be ne.
Open the task managerand check again the two processes: soce.exe *32 and soce.bin *32.
ATTENTION:Restarting the system, the Oce headless processes will not restart. Remeber to execute the start_oo.bat
script otherwise no preview or Oce documents will be managed by Alfresco.
PostgreSQL 9.0.10
Download from http://www.enterprisedb.com/products-services-training/pgdownload#windows.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
q to exit
Click on Start -> PostgreSQL 9.0 -> SQL shell (psql)
Login as alfresco user on the alfresco db with password alfresco.
qto exit
Tomcat 7.0.30
Download from http://tomcat.apache.org/.
Download Tomcat 7.0 -> Quick Navigation -> Archives -> 7.0.30 -> bin -> apache-tomcat-7.0.30-windows-x86.zip
Unzip it in C:Alfresco and rename apache-tomcat-7.0.32 in tomcat.
Click on Start -> Digit cmd
cd C:Alfrescotomcatbin
startup.bat
A command window will be opened with inside all the execution logs of the Tomcat start.
At the end, after few seconds, open a browser to the url:http://localhost:8080/
To stop the Tomcat server, in the command window, execute:
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
<Valve className="org.apache.catalina.authenticator.SSLAuthenticator"
securePagesWithPragma="false" />
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
...
dir.root=C:\Alfresco\alf_data
# IMPORTANT: Leave the comment on the dir.keystore property.
...
db.username=alfresco
db.password=alfresco
...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
ooo.exe=C:\Alfresco\LibreOffice\program\soffice.exe
ooo.enabled=true
jodconverter.officeHome=C:\Alfresco\LibreOffice
jodconverter.portNumbers=8101
jodconverter.enabled=true
# ImageMagick installation
img.root=C:\Alfresco\ImageMagick
img.exe=C:\Alfresco\ImageMagick\convert.exe
# SWFTools exe
swf.exe=C:\Alfresco\SWFTools\pdf2swf.exe
...
db.schema.update=true
...
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
...
index.recovery.mode=AUTO
...
authentication.chain=alfrescoNtlm1:alfrescoNtlm
...
alfresco.rmi.services.host=0.0.0.0
...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
rem ---------------------------
rem - -
rem - Start and Stop Alfresco -
rem - -
rem ---------------------------
set ALF_HOME=C:Alfresco
set CATALINA_HOME=%ALF_HOME%tomcat
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx768m -Xss768m -server -XX:MaxPermSize=256M
:start
%CATALINA_HOME%binstartup.bat
goto :end
:stop
%CATALINA_HOME%binshutdown.bat
goto :end
:end
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
alfresco.bat start
A command window will be opened with inside all the execution logs of the Alfresco start.
Some minutes should be enough
During bootstrap no error should appear.
At the end, open a browser and access to the url http://localhost:8080/share.
Last but not least, remember to copy C:AlfrescotomcatbinWin32NetBIOSx64.dll in C:WindowsSystem32. This is usefull to
make work the CIFS access to Alfresco on this Windows platform.
Thats all
Francesco Corti Posted in Alfresco, Enterprise Content Management java, postgresql, tomcat, tutorial,
windows 66 Comments
New A.A.A.R. Alfresco audit analysis and reporting v1.2 release Pentaho Data Integration CMIS Input plugin
Hi Orion,
I usually add the alfresco user to the sudoers to correctly install everything is necessary.
I usually create the alfresco user with the default alfresco group without specic permits.
Hope this help you.
But you stated In this tutorial I use a brand new Windows Server 2008 R2 Standard 64bit installation with a user called alfresco,
dierent from the Administrator user. Connected as alfresco user:
So, this is about installing on a windows server, correct? So when you create a new user called Alfresco, it will be a member of a
windows security groupso my question is, what should it be a member of?
Hi Orion,
I apologize but I thought this tutorial was the one on the Linux platform so I gave you the wrong answer for the Windows
platform. SOrry for this.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi, Francesco
Thanks for the great document: its very helpful. Im far enough along that Im trying to resolve the Win32NetBIOSx64 issue. I dont
seem to be able to nd a copy of this le as a result of unpacking the Alfresco 4.2.c WAR zip le, or in our Tomcat-7 stu. Can you
provide any additional information about this guy or how to disable the need for it in Alfresco-global.properties, please?
Don
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
I suggest you to nd the dll and use it in the way the installation needs.
You can nd it in the alfrescos zip le in the bin directory. Alternatevely there are several websites containing it, for example:
http://fossies.org/linux/www/alfresco/alfresco-community-4.2.c.zip/index_st.html
If you will not nd it, let me know and Ill send you by email.
Thanks for the speedy reply, and for reminding me of the zip le. I had unpacked the WAR le from it several weeks ago and
had then dismissed the zip le.
Ive been putting together a document like yours for a few weeks now, and just saw yours yesterday. After reading yours, I
doubt theres much that you dont already know. Still, one thing that I learned when trying to address our SSL needs for our
Alfresco server is to create the Tomcat servers certicate request with a Subject Alternative Name (SAN) entry: this allows
users to specify the alfresco severs URL as, say, https://alfrescoServer.yourCompany.com/alfresco or https://alfrescoServer
/alfresco without annoying the browser. Perhaps you already knew this as well, but I hope it may be some return for what
youve provided.
In any case, thanks for the great document: it was very helpful to me.
Don
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Great Article. How do you setup Tomcat so it runs as a service and does not get killed when the alfresco user logs out i.e. how do
you change the user to a system user?
Thanks Mark
Hi Mark,
Regarding your rst question: even if you run alfresco from a command line, when you logout as alfresco user, the tomcat still
continue to work correctly.
If you want to do something like service alfresco start to run alfresco you can edit a new le /etc/init.d/alfresco with this
content:
#!/bin/sh -e
ALFRESCO_SCRIPT=/opt/alfresco/alfresco.sh
if [ $1 = start ]; then
su alfresco ${ALFRESCO_SCRIPT} start
elif [ $1 = stop ]; then
su alfresco ${ALFRESCO_SCRIPT} stop
elif [ $1 = restart ]; then
su alfresco ${ALFRESCO_SCRIPT} stop
su alfresco ${ALFRESCO_SCRIPT} start
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Francesco Corti
Thanks for the great document: its very helpful. But I got a Error message is : Your authentication details have not been recognized
or Alfresco may not be available at this time
Stalin Louis
Hi,
Hi Francesco Corthi..
Thanks for your speedy reply.now its working properly.But i have one more doubts,i need to install Record management amp
les in my Alfresco Community 4.2.e version tell me any possible guide link
Hi, I state that I am a neophyte in Alfresco, but why you use a 32 bit version of tomcat instead of 64 bit? Great tutorial best ..
Hi Francesco,
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Franseco Corti i had some question about cifs on windows 7, so i had a problem when i trying to access the cifs it need
authentication user and password but when i insert the password and username i got that the authentication failed, do i need to
copy Win32NetBIOSx64.dll to system32 since i install alfresco not community but enterprise?
and if its not what should i congure so i could use cifs on windows 7?
because i red on alfresco forum they said i should uninstall le and printer sharing what do you think?
Hi Leon,
Cheers.
Hi Francesco
Great Article. I want plugin Activiti on my Alfresco Community 4.2.c ,I Want to add a new Workow.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi,
Thank you for the feedback.
Workow is a very dierent topic respect to the installation.
Try to take a look here: http://ecmarchitect.com/archives/2012/02/20/1552
Hi Safaa,
Usually, when you cannot login with the admin user, the installation is corrupted in some way.
I suggest you to take a look at the log le (catalina.out).
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Azl,
The problem could be because you use an unsupported version of the browser.
Please, try using Firefox or Chrome.
Hi Francesco,
Yes, by using Firefox I see the error message exactly The remote server may be unavailable or your authentication details
have not been recognized. When I checked the alfresco.log:
WARN [org.hibernate.cfg.SettingsFactory] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class org.postgresql.Driver
Ive tried copy jar JDBC driver into TOMCAT_HOME/lib but it doesnt work properly. Have you any suggestion?
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Dear Francesco ,
I understand now.
Thanks you so much for valuable post.
Hello Francesco
I followed step by step installation.
Now I can see login page in http://localhost:8080/share/page.
But i cannot connect with database.
I have not see alf_data under C:\Alfresco.
Guide me please. :'(
i can pass now . I install again from start and check detail. Its my bad. In fact, I have error that [Error: missing server JVM at
C:AlfrescoJavajre7binserverjvm.dll] . Now i solved it and i get alf_data. Sorry for my interrupt again and again . I am just a
beginner and i have your post only one to refrence. Thanks you so much . Now i have only problem that
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Mark, I suggest you to set the JAVA_OPT S parameter in the script that runs alfresco (alfresco.bat). I hope this helps you.
Dear Francesco,
nally i can run it because of you.
Today i really thanks you .
Wish you all the best
Best Regards,
Mark
Yes, you understand now, but please, what did you do? It may help other. This whole thing is about providing solution. Thank
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi,
At rst I want to thank you for this tutorial, it is very helpful I want to know how can i log in as an administrator for alfresco after
this installation
Hi,
You are welcome!
Login: admin
Password: admin
Dear Francesco ,
thank you very much have you tried to congure ldap authentication after this installation?
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Dear Francesco ,
The problem that i dont nd the directory tomcat/webapps/alfresco after this installation to congure the authentication.
Hi,
You dont have the directory only if you didnt start Alfresco for the rst time.
Hi Francesco,
The LDAP authentication works perfectly, thank you for your quick responses.
Now, I will try the external authentication with OpenAM
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Francesco,
I was struggling with the installation nally your blog saved my life.
Thanks for such an explanatory article, now I am able to login to share and alfresco explorer.
But As I am new Bee and i have a requirement to setup the same in Enterprise edition. But nowhere i am able to nd alfresco-
enterprise-4.2.zip le.
Can you please tell me is it possible to setup enterprise edition the same way?
If yes, can you please help me with that?
Thanks in advance
Monendra
Hi Monendra,
Im happy you nd the tutorial useful.
You can download the zip le for the Enterprise distribution in the partners section of Alfresco otherwise you are not authorize
to use and install it (except for a trial of 30 days).
Cheers.
-F
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
(using Chrome & Mozilla) the half of my Dashboard button in the top left corner is missing plus when I am resizing the page its not
showing any horizontal scroll bar which make the page contents looks like pasta with white sauce.
any suggestions ?
thanks
Ivan
Hi Ivan,
The Alfresco community edition is certied on a (very) limited stack. Even if the presentation is quite old, you can take a look here
(slide 15): http://www.slideshare.net/alfresco/ecm-decision-matrix-deciding-between-alfresco-community-edition-alfresco-
enterprise-edition-and-traditional-proprietary-ecm.
And even if the Alfresco CE is certied, some bugs could be possible (slide 11).
Summarizing I didnt nd the problem you tell me into my (several) installations of Alfresco CE 4.2 but it could depend on your
exact version installed (4.2.a, 4.2.c, 4.2.f, ecc.).
You cannot tollerate this? The only and nal answer is: get the Enterprise Edition!
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
does the above tutorial suits for installing alfresco commmunity 5.0.a..
pls helpp..
Hi,
I would like to develop a new version of the tutorial but you can suppose the steps are more or less the same.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi,
You can start with the installation wizard.
I hope this helps you.
In the last step during the execution of the command alfresco.bat.start i get an error ermSize is not recognized as an internal or
external command, operable program or batch le.
Thanks!
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Francesco Corti
thanks for the installation guide.
I did install it on windows 7 using the lateset alfresco community 5 version.
everything works ne except the startup time it takes in the browser.
when i launch http://localhost:8080/share or alfresco rst time it takes about 4 minutes to start .My Java_OPTS are set to 512 and
768 .
My Pc has 4 gb ram .what will make it faster .
Rida
Hi Rida,
Nice test for this tutorial!
Thank you for sharing your experience.
Regarding your question: Alfresco is always a little bit slow during the startup and the very rst time it takes more time because
of the database setup.
So, my rst suggestion is to measure the startup time in the second time, not before.
In every case, if you want to make the startup faster, you can set up:
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
I am new to Apache Tomcat, but would like to do the following in a default install of Alfresco Community Edition 4.2.f on Windows 7.
1. I would like the user to type the address http://servername rather than http://servername:8080/share/page/ and be directed to
the Alfresco Community login page. This is a test platform, not interested in DNS setup or changing /etc le changes at the moment.
Been searching how to do this for awhile. Your help is appreciated.
Hi Staord,
You can nd the answer in reply to a comment by traductionbiz, in the page: http://fcorti.com/2013/01/09/installation-alfresco-
4-2-c-on-ubuntu/
I hope this will help you.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Mauricio,
Sorry for the delay in my reply.
When you install Alfresco using the wizard, all the dependencies, scripts and modules are installed as a generic single thing.
This means that you cant control everything as a separate component (for example: would be simple to update only Libre Oce
or FFMpeg?).
With this installation you will be able to control every single component independently (you could update PostgreSql quite
safely).
Of course this does not means that this way to install Alfresco is easier.
Finally, I suggest you to use the wizard in a development or non-production environments.
Hi Francesco, I would like to thank you for that great tutorial. It is really helpfull especially for beginners.
I will have one question. I followed all the steps u told. But when I execute the command alfresco.bat start nothing happens. A
command window appeals but i disappear quickly and I cant acceed to the URL.
Could you help me resolve this problem ?
Hi,
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Hi Francesco, do you have tutorials on how to run Alfresco (HEAD) source code in eclipse and tomcat?
Hi Nazri,
I dont have it ready!
If you are interested in develop it, please contact me privately.
Do email me at mnazrimazlan@gmail.com
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Leave a Reply
Use:
Your email address will not be published. Required elds are marked *
Comment
Name *
Email *
Website
+ 1 =
three
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
without
commenting.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.