How To Install Alfresco On Centos 7
Alfresco is the best open up source content management system. This has a stone solid document management foundation, with several functionality built on top of information technology. Alfresco provides web based content management, collaboration platform, Content Management Interoperability Services (CMIS), records direction and image management.
Alfresco has enterprise edition and gratis community edition. See the difference between them here. If you take an in-firm IT team, simply go with the Alfresco community edition. It is directly-forward to install and configure Alfresco.
In this article, let united states of america review how to install and configure alfresco community edition on UNIX / Linux platform using 12 easy steps.
1. Install Alfresco Customs Tomcat Bundle
Download Alfresco from the community edition download page.
# cd ~ # wget -O alfresco-customs-tomcat-three.3.tar.gz http://dl.alfresco.com/release/community/build-2765/alfresco-community-tomcat-iii.3.tar.gz?dl_file=release/community/build-2765/alfresco-community-tomcat-3.three.tar.gz # mkdir /opt/alfresco/ # cd /opt/alfresco/ # tar xvfz ~/alfresco-community-tomcat-3.3.tar.gz
2. Modify Alfresco Global Properties
alf_data parameter identifies the location of alfresco data shop, where all the documents will be stored. Make sure this is pointing to an accented path as shown below. Initially this directory will not be present. This alf_data directory will exist created when we offset the alfresco for the 1st fourth dimension.
# vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties dir.root=/opt/alfresco/alf_data # ls -l /opt/alfresco/alf_data ls: /opt/alfresco/alf_data: No such file or directory
3. Verify MySQL connector is installed
Just double-bank check to make sure the mysql connector is installed in the proper location, as shown below.
# ls -50 /opt/alfresco/tomcat/lib/mysql-connector-java-5.1.7-bin.jar -rwxr-xr-ten 1 root root 709922 January 12 xi:59 /opt/alfresco/tomcat/lib/mysql-connector-java-5.1.7-bin.jar
4. Create the Alfresco MySQL databases
If you don't have MySQL, install it as using yum groupinstall, or based on LAMP install article, or based on mysql rpm commodity.
After installing MySQL, create the alfresco database using the db_setup.sql script equally shown beneath.
# cd /opt/alfresco/extras/databases/mysql # mysql -u root -p <db_setup.sql Enter password: # ls -l /var/lib/mysql/alfresco/ total four -rw-rw---- 1 mysql mysql 54 May 7 eleven:25 db.opt
5. Verify that Alfresco MySQL databases got created
# mysql -u root -p Enter password: mysql> testify databases; +--------------------+ | Database | +--------------------+ | information_schema | | alfresco | | mysql | | test | +--------------------+ 4 rows in gear up (0.00 sec) mysql>
6. Update the db.url in the global property files
Update the db.url parameter in the alfresco-global.properties file to point to localhost:3306 every bit shown below.
# six /opt/alfresco/tomcat/shared/classes/alfresco-global.properties db.url=jdbc:mysql://localhost:3306/alfresco
7. Outset Alfresco Server
Start the alfresco server. This will commencement the tomcat application server that was bundled with the alfresco.
# cd /opt/alfresco # ./alfresco.sh start Using CATALINA_BASE: /opt/alfresco/tomcat Using CATALINA_HOME: /opt/alfresco/tomcat Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp Using JRE_HOME: /usr/java/jdk1.six.0_18
While the alfresco tomcat server is starting up, check the /opt/alfresco/alfresco.log for whatsoever possible issues.
When alfresco.sh is executed for the 1st fourth dimension, information technology volition do some database setup, and y'all'll see following messages in the alfresco.log (only the 1st time).
- Executing database script /opt/alfresco/tomcat/temp/Alfresco/*.sql
- All executed statements: /opt/alfresco/tomcat/temp/Alfresco/*.sql
- Applied patch – [org.alfresco.repo.admin.patch.PatchExecuter]
Look for the line in the log file where information technology says "Alfresco started", which indicates that Alfresco was started successfully.
Post-obit are few sample lines from alfresco.log.
# tail -f /opt/alfresco/alfresco.log 21:29:25,431 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-3892772511531851057.sql (Copied from classpath:alfresco/dbscripts/create/three.3/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-3.three-RepoTables.sql). 21:29:27,245 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements: /opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-All_Statements-4724137490855924607.sql. === Practical patch === ID: patch.db-V3.0-0-CreateActivitiesExtras RESULT: Script completed ===================================== 21:30:03,756 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.vi.0_21-b06; maximum heap size 910.250MB 21:30:03,756 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Customs): Current version three.three.0 (2765) schema 4009 - Originally installed version iii.three.0 (2765) schema 4009
8. Verify the alf_data directory cosmos
When you showtime the alfresco for the 1st fourth dimension, it will create the alfresco information repository every bit shown beneath.
# ls -l /opt/alfresco/alf_data total 32 drwxr-xr-x 2 root root 4096 Mar 25 16:26 audit.contentstore drwxr-xr-x 2 root root 4096 Mar 25 sixteen:26 contentstore drwxr-xr-x 2 root root 4096 Mar 25 xvi:26 contentstore.deleted drwxr-xr-ten 3 root root 4096 Mar 25 sixteen:26 lucene-indexes
9. Verify that Alfresco Server is Running
Make sure alfresco server is running successfully. View the alfresco.log file to brand sure in that location are no errors.
# ps -ef | grep -i alf root 9280 ane 51 xvi:25 pts/0 00:00:30 /usr/coffee/jdk1.6.0_18/bin/coffee -Xms128m -Xmx512m -Twenty:MaxPermSize=160m -server -Dalfresco.habitation=. -Dcom.sunday.management.jmxremote -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/alfresco/tomcat/endorsed -classpath :/opt/alfresco/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/alfresco/tomcat -Dcatalina.habitation=/opt/alfresco/tomcat -Djava.io.tmpdir=/opt/alfresco/tomcat/temp org.apache.catalina.startup.Bootstrap get-go # tail -f /opt/alfresco/alfresco.log
10. Login to Alfresco Explorer or Alfresco Share
Alfresco has two ways to access the application — Alfresco Explorer and Alfresco Share.
Become to http://localhost:8080/alfresco – to launch the Alfresco explorer
Go to http://localhost:8080/share – to launch the Alfresco share
Default alfresco administrator uid/pwd is admin/admin. Change information technology immediately later on you login.
11. Change the default countersign for the alfresco database
Utilise the mysql update control to change the password for the alfresco user as shown below.
# mysql -u root -p mysql Enter password: Reading table information for completion of table and cavalcade names Yous can plough off this characteristic to get a quicker startup with -A Welcome to the MySQL monitor. Commands stop with ; or \g. Your MySQL connection id is 51 Server version: v.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to articulate the buffer. mysql> UPDATE user SET countersign=Password('donttellanybody') WHERE user='alfresco'; Query OK, 2 rows affected (0.00 sec) Rows matched: two Changed: 2 Warnings: 0 mysql> 12. Change the configuration file to reverberate the new alfresco password.
Update the db.password parameter in the alfresco-global.backdrop file as shown below.
# vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties db.proper name=alfresco db.username=alfresco db.countersign=donttellanybody
After this, stop/start MySQL database and restart Alfresco Tomcat server. As a final step, brand certain to have a fill-in of alfresco mysql database using mysqldump or mysqlhotcopy and /opt/alfresco directory.
# service mysqld restart # /opt/alfresco/alfresco.sh stop # /opt/alfresco/alfresco.sh start
Source: https://www.thegeekstuff.com/2010/05/alfresco-installation-guide-for-linux/
Posted by: mccleandonfe1985.blogspot.com

0 Response to "How To Install Alfresco On Centos 7"
Post a Comment