Giunsa ang Pag-install sa Alfresco Community Edition sa RHEL/CentOS 7/6 ug Debian 8


Ang Alfresco usa ka open source nga sistema sa ECM (Enterprise Content Management) nga gisulat sa Java nga naghatag ug elektronik nga pagdumala, kolaborasyon ug pagkontrol sa negosyo.

Kini nga giya maglakip kung unsaon pag-install ug pag-configure ang Alfresco Community Edition sa RHEL/CentOS 7/6, Debian 8 ug mga sistema sa Ubuntu nga adunay Nginx server isip frontend web server alang sa aplikasyon.

Sama sa alang sa minimum nga mga kinahanglanon sa sistema, ang Alfresco nanginahanglan usa ka makina nga adunay labing menos 4 GB nga RAM ug usa ka 64-bit nga Operating System.

Lakang 1: I-install ang Alfresco Community Edition

1. Sa dili pa ipadayon ang pag-instalar sa Alfresco unaha nga siguruha nga ang wget utility na-install sa imong makina pinaagi sa pag-isyu sa ubos nga mando nga adunay mga pribilehiyo sa gamut o gikan sa root account.

# yum install wget
# apt-get install wget

2. Sunod, i-setup ang imong hostname sa system ug siguruha nga ang lokal nga resolusyon nagpunting sa imong IP Address sa server pinaagi sa pag-isyu sa mosunod nga mga mando:

# hostnamectl set-hostname server.alfresco.lan
# echo “192.168.0.40 server.alfresco.lan” >> /etc/hosts

3. Kuhaa ang bisan unsang MTA gikan sa makina (sa kini nga kaso sa Postfix Mail server) pinaagi sa pag-isyu sa ubos nga sugo:

# yum remove postfix
# apt-get remove postfix

4. I-install ang mosunod nga mga dependency nga gikinahanglan sa Alfresco software aron makadagan sa husto:

# yum install fontconfig libSM libICE libXrender libXext cups-libs
# apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2

5. Sunod, adto sa wget utility.

# wget http://nchc.dl.sourceforge.net/project/alfresco/Alfresco%205.0.d%20Community/alfresco-community-5.0.d-installer-linux-x64.bin

6. Human mahuman ang pag-download sa binary file, i-issue ang mosunud nga mando aron mahatagan ang mga pagtugot sa pagpatuman alang sa file ug pagdagan ang alfresco installer.

# chmod +x alfresco-community-5.0.d-installer-linux-x64.bin
# ./alfresco-community-5.0.d-installer-linux-x64.bin

7. Human magsugod ang proseso sa pag-instalar, pilia ang pinulongan ug ipadayon ang proseso sa pag-instalar pinaagi sa paggamit sa ubos nga wizard sa pag-install isip giya sa pag-configure sa Alfresco:

 ./alfresco-community-5.0.d-installer-linux-x64.bin 
Language Selection

Please select the installation language
[1] English - English
[2] French - Français
[3] Spanish - Español
[4] Italian - Italiano
[5] German - Deutsch
[6] Japanese - 日本語
[7] Dutch - Nederlands
[8] Russian - Русский
[9] Simplified Chinese - 简体中文
[10] Norwegian - Norsk bokmål
[11] Brazilian Portuguese - Português Brasileiro
Please choose an option [1] : 1
----------------------------------------------------------------------------
Welcome to the Alfresco Community Setup Wizard.

----------------------------------------------------------------------------
Installation Type

[1] Easy - Installs servers with the default configuration
[2] Advanced - Configures server ports and service properties.: Also choose optional components to install.
Please choose an option [1] : 2

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want 
to install. Click Next when you are ready to continue.

Java [Y/n] :y

PostgreSQL [Y/n] :y

Alfresco : Y (Cannot be edited)

Solr1 [y/N] : n

Solr4 [Y/n] :y

SharePoint [Y/n] :y

Web Quick Start [y/N] : y

Google Docs Integration [Y/n] :y

LibreOffice [Y/n] :y

Is the selection above correct? [Y/n]: y

Ang Alfresco Installation Wizard Nagpadayon….

----------------------------------------------------------------------------
Installation Folder

Please choose a folder to install Alfresco Community

Select a folder [/opt/alfresco-5.0.d]: [Press Enter key]

----------------------------------------------------------------------------
Database Server Parameters

Please enter the port of your database.

Database Server port [5432]: [Press Enter key]

----------------------------------------------------------------------------
Tomcat Port Configuration

Please enter the Tomcat configuration parameters you wish to use.

Web Server domain: [127.0.0.1]: 192.168.0.15 

Tomcat Server Port: [8080]: [Press Enter key

Tomcat Shutdown Port: [8005]: [Press Enter key

Tomcat SSL Port [8443]: [Press Enter key

Tomcat AJP Port: [8009]: [Press Enter key

----------------------------------------------------------------------------
Alfresco FTP Port

Please choose a port number to use for the integrated Alfresco FTP server.

Port: [21]: [Press Enter key

Nagpadayon ang Pag-instalar sa Alfresco…

----------------------------------------------------------------------------
Admin Password

Please give a password to use for the Alfresco administrator account.

Admin Password: :[Enter a strong password for Admin user]
Repeat Password: :[Repeat the password for Admin User]
----------------------------------------------------------------------------
Alfresco SharePoint Port

Please choose a port number for the SharePoint protocol.

Port: [7070]: [Press Enter key]

----------------------------------------------------------------------------
Install as a service

You can optionally register Alfresco Community as a service. This way it will 
automatically be started every time the machine is started.

Install Alfresco Community as a service? [Y/n]: y


----------------------------------------------------------------------------
LibreOffice Server Port

Please enter the port that the Libreoffice Server will listen to by default.

LibreOffice Server Port [8100]: [Press Enter key]

----------------------------------------------------------------------------

Nagpadayon ang Alfresco Installation Setup..

----------------------------------------------------------------------------
Setup is now ready to begin installing Alfresco Community on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs Alfresco Community on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing Alfresco Community on your computer.

View Readme File [Y/n]: n

Launch Alfresco Community Share [Y/n]: y

waiting for server to start....  done
server started
/opt/alfresco-5.0.d/postgresql/scripts/ctl.sh : postgresql  started at port 5432
Using CATALINA_BASE:   /opt/alfresco-5.0.d/tomcat
Using CATALINA_HOME:   /opt/alfresco-5.0.d/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-5.0.d/tomcat/temp
Using JRE_HOME:        /opt/alfresco-5.0.d/java
Using CLASSPATH:       /opt/alfresco-5.0.d/tomcat/bin/bootstrap.jar:/opt/alfresco-5.0.d/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/alfresco-5.0.d/tomcat/temp/catalina.pid
Tomcat started.
/opt/alfresco-5.0.d/tomcat/scripts/ctl.sh : tomcat started

8. Human mahuman ang proseso sa pag-instalar ug masugdan na ang mga serbisyo sa Alfresco i-isyu ang mga sugo sa ubos aron maablihan ang mosunod nga mga pantalan sa firewall aron tugotan ang mga eksternal nga host sa imong network nga makonektar sa web application.

# firewall-cmd --add-port=8080/tcp -permanent
# firewall-cmd --add-port=8443/tcp -permanent
# firewall-cmd --add-port=7070/tcp -permanent
# firewall-cmd --reload

Kung kinahanglan nimo nga idugang ang ubang mga lagda sa firewall sa pag-abli sa mga pantalan aron ma-access ang naandan nga serbisyo sa Alfresco i-isyu ang ss nga mando aron makakuha usa ka lista sa tanan nga mga serbisyo nga nagdagan sa imong makina.

# ss -tulpn

9. Aron maka-access sa mga serbisyo sa web sa Alfresco, ablihi ang browser ug gamita ang mosunod nga mga URL (ilisan ang IP Address o domain sumala niana). Pag-login sa admin user ug ang password nga gi-configure para sa Admin pinaagi sa proseso sa pag-instalar.

http://IP-or-domain.tld:8080/share/ 
http://IP-or-domain.tld:8080/alfresco/ 

Alang sa WebDAV.

http://IP-or-domain.tld:8080/alfresco/webdav 

Alang sa HTTPS dawata ang eksepsiyon sa seguridad.

https://IP-or-domain.tld:8443/share/ 

Alfresco SharePoint Module uban sa Microsoft.

http://IP-or-domain.tld:7070/

Lakang 2: I-configure ang Nginx isip Frontend Web Server para sa Alfresco

10. Aron ma-install ang Nginx server sa sistema, idugang una ang Epel Repositories sa CentOS/RHEL pinaagi sa pag-isyu sa ubos nga sugo:

# yum install epel-release

11. Human madugang ang mga repo sa Epel sa sistema ipadayon ang pag-instalar sa Nginx web server pinaagi sa pag-isyu sa mosunod nga sugo:

# yum install nginx       [On RHEL/CentOS Systems]
# apt-get install nginx   [On Debian/Ubuntu Systems]  

12. Sa sunod nga lakang ablihi ang Nginx configuration file gikan sa /etc/nginx/nginx.conf gamit ang text editor ug himoa ang mosunod nga mga kausaban:

location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

Lakaw sa ubos ug siguroha nga imong ikomento ang ikaduhang pahayag sa lokasyon pinaagi sa pagbutang ug # atubangan sa mosunod nga mga linya:

#location / {
#        }

13. Human nimo mahuman, i-save ug isara ang Nginx configuration file ug i-restart ang daemon aron mapakita ang pagbag-o pinaagi sa pag-isyu sa mosunod nga sugo:

# systemctl restart nginx.service

14. Aron maka-access sa Alfresco web interface makadugang ug bag-ong firewall nga lagda sa pag-abli sa port 80 sa imong makina ug pag-navigate sa ubos nga URL. Usab, siguroha nga ang polisiya sa Selinux gi-disable sa mga sistema sa RHEL/CentOS.

# firewall-cmd --add-service=http -permanent
# firewall-cmd --reload
# setenforce 0

Aron hingpit nga ma-disable ang polisiya sa Selinux sa sistema, ablihi ang /etc/selinux/config file ug itakda ang linya nga SELINUX gikan sa pagpatuman ngadto sa disabled.

15. Karon mahimo nimong ma-access ang Alfresco pinaagi sa Nginx.

 http://IP-or-domain.tld/share/ 
 http://IP-or-domain.tld/alfresco/
 http://IP-or-domain.tld/alfresco/webdav 

15. Kung gusto nimo nga luwas nga bisitahan ang Alfresco web interface pinaagi sa Nginx proxy nga adunay SSL, paghimo og Self-Signed Certificate para sa Nginx sa /etc/nginx/ssl/ directory ug pun-a ang certificate sa imong custom settings sama sa gihulagway sa ubos nga screenshot:

# mkdir /etc/nginx/ssl
# cd /etc/nginx/ssl/
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout alfresco.key -out alfresco.crt

Hatagi'g pagtagad ang Certificate Common Name aron ipares ang imong domain hostname.

17. Sunod, ablihi ang Nginx configuration file alang sa pag-edit ug idugang ang mosunod nga block sa dili pa ang katapusan nga closing curly bracket (ang } simbolo).

# vi /etc/nginx/nginx.conf

Nginx SSL block kinutlo:

server {
    listen 443;
    server_name _;

    ssl_certificate           /etc/nginx/ssl/alfresco.crt;
    ssl_certificate_key       /etc/nginx/ssl/alfresco.key;

    ssl on;
    ssl_session_cache  builtin:1000  shared:SSL:10m;
    ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;

    access_log            /var/log/nginx/ssl.access.log;

      location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
## This is the last curly bracket before editing the file. 
  }

18. Sa katapusan, i-restart ang Nginx daemon aron magamit ang mga pagbag-o, pagdugang usa ka bag-ong lagda sa firewall alang sa 443 port.

# systemctl restart nginx
# firewall-cmd -add-service=https --permanent
# firewall-cmd --reload

ug itudlo ang browser sa imong domain URL gamit ang HTTPS protocol.

https://IP_or_domain.tld/share/
https://IP_or_domain.tld/alfresco/

19. Aron makahimo sa Alfresco ug Nginx daemons system-wide padagana ang mosunod nga sugo:

# systemctl enable nginx alfresco

Kana lang! Ang Alfresco nagtanyag og integrasyon sa MS Office ug LibreOffice pinaagi sa CIFs protocol nga naghatag og pamilyar nga workflow alang sa mga tiggamit.