Alfresco Community Edition 6.2.0 "New Installation"
All-In-One Steps (only HTTP, without SSL configuration)
Installed JDK version - 11.x (for ubuntu - sudo apt install openjdk-11-jdk)
Installed Postgresql - 11.x. A new and empty database-name and a dbusername who is the owner of the database and the password.
https://computingforgeeks.com/install-postgresql-11-on-ubuntu-linux/
https://pgdash.io/blog/postgres-11-getting-started.html
- Download alfresco_automated_installation.sh from here - https://github.com/ajkr195/AlfrescoCommunityInstallation
- Update these line # 8, 9, 10, and 11 as per your environment in your downloaded alfresco_automated_installation.sh file
- Run ./alfresco_automated_installation.sh
- The script will download packages, unzip/untar and configure them. Jump to "System Start" section after this.
- Distribution (ACS): https://download.alfresco.com/cloudfront/release/community/201911-GA-build-368/alfresco-content-services-community-distribution-6.2.0-ga.zip
- Search Services (SOLR6): https://download.alfresco.com/cloudfront/release/community/SearchServices/1.4.0/alfresco-search-services-1.4.0.zip
- ActiveMQ: http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.16.0/apache-activemq-5.16.0-bin.tar.gz&action=download
- Records Management (RM): https://download.alfresco.com/cloudfront/release/community/RM/3.0.a/alfresco-community.zip
- Tomcat (WebServer): https://mirrors.sonic.net/apache/tomcat/tomcat-8/v8.5.60/bin/apache-tomcat-8.5.60.tar.gz
- Extract #1 in our Alfresco_HOME. Say - /home/user/Documents/alfresco
- Extract #2 in our Solr_HOME - Alfresco_HOME/alfrescoss
- Extract #3 in our ActiveMQ_HOME - Alfresco_HOME/activemq
- Extract #4 in Alfresco_HOME/rm-amps
- Extract #5 in our Tomcat_HOME- Alfresco_HOME/tomcat
- Extract Alfresco_HOME/alfresco-pdf-renderer/alfresco-pdf-renderer-1.1-linux.tgz in this directory - Alfresco_HOME/alfresco-pdf-renderer
- Copy Alfresco_HOME/web-server/conf/Catalina directory in Tomcat_HOME/conf directory
- Copy Alfresco_HOME/web-server/shared directory inside Tomcat_HOME like so - Tomcat_HOME/shared
- Create a directory "lib" in Tomcat_HOME/shared/ so that you have a path - Tomcat_HOME/shared/lib
- Now copy Alfresco_HOME/web-server/lib/postgresql-x.y.z.jar to the directory created in above step. That is - Tomcat_HOME/shared/lib
- Empty Tomcat_HOME/webapps directory. That means - Delete everything inside this directory - Tomcat_HOME/webapps
- Now copy all .war files from Alfresco_HOME/web-server/webapps/ to Tomcat_HOME/webapps directory
- OPTIONAL -
Build and create your ACS REST API Explorer war file using "mvn clean install" from here - https://github.com/Alfresco/rest-api-explorer
and here
https://github.com/Alfresco/records-management/tree/master/rm-community/rm-community-rest-api-explorer
OR
Download them from https://github.com/ajkr195/AlfrescoCommunityInstallation/blob/main/rest-api-explorer.war and https://github.com/ajkr195/AlfrescoCommunityInstallation/blob/main/rm-rest-api-explorer.war - OPTIONAL -
Copy above two generated/downloaded war files to Tomcat_HOME/webapps directory - Create directory - Alfresco_HOME/modules
- Create directory - Alfresco_HOME/modules/platform
- Create directory - Alfresco_HOME/modules/share
- Update Tomcat_HOME/conf/catalina.properties file. Search for - "shared.loader=" and update it like this - shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
- Download this file - https://github.com/ajkr195/AlfrescoCommunityInstallation/blob/main/alfresco-global.properties and place it in this directory - Tomcat_HOME/shared/classes
Make sure you have correct database name and user+password as per pre-requisites in this file
- Comment/delete this line - alfresco.port.ssl=8443 in Solr_HOME/solrhome/templates/rerank/conf/solrcore.properties
- Change this line - alfresco.secureComms=https to alfresco.secureComms=none in Solr_HOME/solrhome/templates/rerank/conf/solrcore.properties
- Save and close Solr_HOME/solrhome/templates/rerank/conf/solrcore.properties file
- Run this command Solr_HOME/solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
- java -jar Alfresco_HOME/bin/alfresco-mmt.jar install Alfresco_HOME/amps/alfresco-share-services.amp Tomcat_HOME/webapps/alfresco.war
- java -jar Alfresco_HOME/bin/alfresco-mmt.jar install Alfresco_HOME/rm-amps/alfresco-rm-community-repo-3.0.a.amp Tomcat_HOME/webapps/alfresco.war
- java -jar Alfresco_HOME/bin/alfresco-mmt.jar install Alfresco_HOME/rm-amps/alfresco-rm-community-share-3.0.a.amp Tomcat_HOME/webapps/share.war
- Run this command - ActiveMQ_HOME/bin/activemq start
- Run this command - Tomcat_HOME/bin/startup.sh & disown
- Run this command - Solr_HOME/solr/bin/solr start
http://localhost:8080/share
http://localhost:8080/rest-api-explorer
http://localhost:8080/rm-rest-api-explorer
http://localhost:8080/alfresco/service/index/all
- Run this command - ps -ef |grep java
- Identify java process ids for tomcat, solr and activemq
- Kill tomcat instance of java (Required)
- Kill solr instance of java (Required)
- Kill acativemq instance of java (Optional)