Alfresco Deployment on Weblogic -Postgres.
Postgres Installation
1.Download the postgresql-8.3.exe Installer
2. Double click on the Postgresql-8.3 installer
Give the installation path as D:\postgres
and click next
Uncheck the check box that you dont need to “install as service”
click next and gothrough the installation process.......
Deselect the launch prompt check box and click on finish
the installation process!
Setup the Database in Postgres for Alfresco
Navigate to your Postgres installation folder
copy the path upto bin ie. D:\postgres\bin and open command prompt and change
directory to D:\postgres\bin and run the initdb -D d:\postgres\data
command....
then run pg_ctl start -D
d:\postgres\data command
If the below error occurs then you have to check and stop the alfresco tomcat services from your machine.. Seems some other app is consuming the port!??
After ensuring the port is valid to go, you can run that command
again in command prompt:-- pg_ctl
start -D d:\postgres\data and start the postgres server.
After this you have to run createuser -P -s -e alfresco to create user in alfresco. Give password as alfresco and confirm the password.
Now you type pgAdmin3.exe in console and hit Enter.
You will see the below screen.
Next step:------
Alfresco Deployment in Weblogic
Download the weblogic archive and extract it to your C:\bea
Download and extract the alfresco-enterprise-ear-4.0.2.zip
file.
Extract alfresco-enterprise-4.0.2.9.ear file from the archive and extract it again to
“alfresco-enterprise-4.0.2.9\”.
If you open, inside alfresco-enterprise-ear-4.0.2.9
folder there will be two files - share.war
and alfresco.war and a Meta-inf folder
Rename them as share.war.tmp and alfresco.war.tmp.
Now right
click on share.war.tmp and try to
Extract to “share.war\” and also on alfresco.war.tmp and to extract to “alfresco.war\”.
Create a
folder 'alfrescobea' in D drive and inside which create two folders ear and repository
Copy the folders alfresco.war, share.war,
and META-INF into ear folder.
Now go to C:\bea\wlserver_10.3\common\bin and run config.cmd
which will open that below
screen
change the domain name as alf_domain.
Give the password as weblogic1.
Now go to C:\bea\user_projects\domains\alf_domain
inside that create a folder called alfresco,and inside that create a folder
called extension and put the license file into that.
Next you go to the D:\alfrescobea\ear\alfresco.war\WEB-INF\classes and copy the
alfresco-global.properties.sample file and paste it in the C:\bea\user_projects\domains\alf_domain.Then
rename that file as
alfresco-global.properties. Open it in notepad ++ and add this line
|
db.pool.statements.enable=false into
alfresco-global.properties file,and uncomment these lines
dir.root=d:/alfrescobea/repository
db.username=alfresco
db.password=alfresco
db.password=alfresco
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
db.url=jdbc:postgresql://localhost:5432/alfresco
alfresco.rmi.services.host=0.0.0.0
Then go to C:\Alfresco\tomcat\lib copy
that postgresql-9.0-802.jdbc4.jar file into
C:\bea\user_projects\domains\alf_domain\lib.
Now open the C:\bea\user_projects\domains\alf_domain\config
and open config.xml file and add
|
<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>
before
|
the end of the </security-configuration>
section.
Go to
C:\bea\user_projects\domains\alf_domain\bin and open setDomainEnv.cmd
file in notepad++ and modify
|
MEM_MAX_PERM_SIZE="-XX:MaxPermSize=256m"
MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=512m"
MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=256m"
set
WLS_MEM_ARGS_64BIT=-Xms256m -Xmx2048m
set WLS_MEM_ARGS_32BIT=-Xms256m
-Xmx1024m
|
(in if
part and also else part you have to do the modification)
set JAVA_OPTIONS=%JAVA_OPTIONS%
%enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic...
-ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole...
-Dweblogic.disableMBeanAuthorization=true” in if part
set
JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da -Dweblogic.disableMBeanAuthorization=true”
(in else part)
set
PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%PRE_CLASSPATH%;C:/bea/user_projects/domains/alf_domain
(in if part)
go to
location C:\bea\wlserver_10.3\common\nodemanager.If you find that
inside nodemanager folder there is no nodemanager.properties file then you have
to create it.for creating that just go to that particularlocation in commamd
prompt that is:--
C:\bea\wlserver_10.3\server\bin and run that startNodeManager.cmd.which
will create the nodemanager.properties file.After that we have to modify two
things insde nodemanager.properties file.they are...
1.SecureListener=false
2.StartScriptEnabled=true
Starting the server
1. Start the domain admin server.
To do that
you have to go to cmd and then go to path C:\bea\user_projects\domains\alf_domain
and run startWebLogic.cmd.
Open a web browser and log in to the admin
server (for example, at http://localhost:7001/console) with the credentials
that you specified while installing Weblogic.
username: weblogic
password: weblogic1
You will see the below screen and on the
left corner you will find environment.
Expand it and click on Machines. Then create a machine with the details of the
machine running the domain. This will allow the node manager to control servers
on that machine.
Name : localhost
Machine OS : Other
Create a
server called AlfrescoServer within the new machine.
Make sure that you have change the port
number while configuring the server or creating the server.
Here we give the port as 8080 for
localhost.
To complete creation of server just click
finish.
a. Ensure that the node manager is running (for
example, C:\bea\wlserver_10.3\server\bin\startNodeManager.cmd).
You will be
able to use the admin server Change Center panel to start and stop the Alfresco
server.
1. In the left pane of the Administration
Console, click Deployments.
Then click on install.
Now navigate to
D:\alfrescobea\ear path you will see.
Finish the installation of weblogic
server.