Yadda ake Sanya Alfresco Community Edition akan RHEL/CentOS 7/6 da Debian 8


Alfresco shine tsarin ECM mai buɗewa (Mai sarrafa abun ciki na Kasuwanci) wanda aka rubuta a cikin Java wanda ke ba da sarrafa lantarki, haɗin gwiwa da sarrafa kasuwanci.

Wannan jagorar zai rufe yadda ake shigarwa da daidaita Alfresco Community Edition akan RHEL/CentOS 7/6, Debian 8 da tsarin Ubuntu tare da sabar Nginx azaman sabar gidan yanar gizo na gaba don aikace-aikacen.

Dangane da mafi ƙarancin buƙatun tsarin, Alfresco yana buƙatar na'ura mai aƙalla 4 GB na RAM da Tsarin Aiki na 64-bit.

Mataki 1: Shigar Alfresco Community Edition

1. Kafin ci gaba da shigarwar Alfresco da farko tabbatar da cewa an shigar da kayan aikin wget akan injin ku ta hanyar ba da umarnin da ke ƙasa tare da tushen gata ko daga asusun tushen.

# yum install wget
# apt-get install wget

2. Na gaba, saita sunan mai masaukin tsarin ku kuma tabbatar da cewa ƙudurin gida yana nuna adireshin IP na uwar garken ta hanyar ba da umarni masu zuwa:

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

3. Cire kowane MTA daga injin (a cikin wannan yanayin Postfix Mail uwar garken) ta hanyar ba da umarnin da ke ƙasa:

# yum remove postfix
# apt-get remove postfix

4. Shigar da abubuwan dogaro da software na Alfresco ke buƙata don yin aiki da kyau:

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

5. Na gaba, je zuwa 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. Bayan sauke fayil ɗin binary ya ƙare, ba da umarni mai zuwa don ba da izinin aiwatar da fayil ɗin kuma gudanar da mai saka alfresco.

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

7. Bayan an fara aiwatar da shigarwa, zaɓi yaren kuma ci gaba da tsarin shigarwa ta amfani da mayen shigarwa na ƙasa azaman jagora don saita 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

Mayen Shigar Alfresco yana Ci gaba….

----------------------------------------------------------------------------
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

Ana Ci gaba da Shigar 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]

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

Ana Ci gaba da Saitin Shigar Alfresco..

----------------------------------------------------------------------------
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. Bayan an gama shigarwa kuma an fara ayyukan Alfresco suna ba da umarnin da ke ƙasa don buɗe tashoshin wuta masu zuwa don ba da damar runduna ta waje a cikin hanyar sadarwar ku don haɗawa da aikace-aikacen yanar gizo.

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

Idan kuna buƙatar ƙara wasu ƙa'idodin Tacewar zaɓi don buɗe tashoshin jiragen ruwa don samun dama ga ayyukan Alfresco na al'ada suna ba da umarnin ss don samun jerin duk ayyukan da ke gudana akan injin ku.

# ss -tulpn

9. Don samun dama ga ayyukan gidan yanar gizo na Alfresco, buɗe mai bincike kuma yi amfani da URLs masu zuwa (maye gurbin adireshin IP ko yankin daidai). Shiga tare da mai amfani da admin da kuma kalmar sirri da aka saita don Admin ta hanyar shigarwa.

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

Don WebDAV.

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

Don HTTPS yarda da keɓantawar tsaro.

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

Alfresco SharePoint Module tare da Microsoft.

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

Mataki 2: Sanya Nginx azaman Sabar Yanar Gizo ta Frontend don Alfresco

10. Domin shigar da uwar garken Nginx akan tsarin, da farko ƙara Epel Repositories akan CentOS/RHEL ta hanyar ba da umarnin da ke ƙasa:

# yum install epel-release

11. Bayan an ƙara Epel repos a cikin tsarin ci gaba da shigarwar sabar gidan yanar gizon Nginx ta hanyar ba da umarni mai zuwa:

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

12. A mataki na gaba bude fayil na Nginx daga /etc/nginx/nginx.conf tare da editan rubutu kuma yi canje-canje masu zuwa:

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;
    }

Je zuwa ƙasa kuma ku tabbata kun yi sharhi bayanin wuri na biyu ta hanyar sanya # a gaban layin masu zuwa:

#location / {
#        }

13. Bayan kun gama, ajiyewa da rufe fayil ɗin sanyi na Nginx kuma sake kunna daemon don nuna canji ta hanyar ba da umarni mai zuwa:

# systemctl restart nginx.service

14. Domin samun damar shiga yanar gizo na Alfresco ƙara sabon tsarin wuta don buɗe tashar jiragen ruwa 80 akan injin ku kuma kewaya zuwa URL na ƙasa. Hakanan, tabbatar da an kashe manufofin Selinux akan tsarin RHEL/CentOS.

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

Don musaki tsarin Selinux gaba ɗaya akan tsarin, buɗe fayil ɗin /etc/selinux/config kuma saita layin SELINUX daga inarfafa zuwa nakasassu.

15. Yanzu zaku iya samun damar Alfresco ta hanyar Nginx.

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

15. Idan kuna son ziyartar shafin yanar gizon Alfresco amintacce ta hanyar wakili na Nginx tare da SSL, ƙirƙirar Takaddun Sa hannu don Nginx akan /etc/nginx/ssl/ directory kuma cika takaddun shaida tare da saitunanku na al'ada. kamar yadda aka kwatanta a hoton da ke ƙasa:

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

Kula da Takaddun Sunan gama gari don dacewa da sunan mai masaukin yankin ku.

17. Na gaba, buɗe fayil ɗin sanyi na Nginx don gyarawa kuma ƙara toshe mai zuwa kafin madaidaicin madaidaicin rufewa (alamar }).

# vi /etc/nginx/nginx.conf

Nginx SSL toshe yanki:

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. A ƙarshe, sake kunna Nginx daemon don amfani da canje-canje, ƙara sabon ka'idar Tacewar zaɓi don tashar jiragen ruwa 443.

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

kuma umurci mai binciken zuwa URL ɗin yankinku ta amfani da ka'idar HTTPS.

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

19. Domin kunna Alfresco da Nginx daemons tsarin-fadi gudanar da umurnin da ke ƙasa:

# systemctl enable nginx alfresco

Shi ke nan! Alfresco yana ba da haɗin kai tare da MS Office da LibreOffice ta hanyar ka'idar CIFs tana ba da ingantaccen aiki ga masu amfani.