Installing Alfresco Community Edition on CentOS

Prerequisites:

  1. You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get a free account in your Alibaba Cloud account. If you don’t know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 4GB RAM and 2 Core processor.
  2. A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  3. Domain name must be pointed to your Alibaba Cloud ECS’s IP address
  4. Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  5. Set up your server’s hostname and create user with root privileges.

Install Required Dependencies

# sudo yum -y install fontconfig
# sudo yum -y install libSM
# sudo yum -y install libICE
# sudo yum -y install cups-libs
# sudo yum -y install libGLU cairo mesa-libGL-devel
# sudo yum -y remove postfix
# sudo yum install nano

Install Alfresco Community Edition

# wget https://download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin
# sudo chmod +x alfresco-community-installer-201707-linux-x64.bin
# sudo ./alfresco-community-installer-201707-linux-x64.bin
# sudo systemctl start alfresco
# sudo systemctl enable alfresco

Configure Reverse Proxy

# sudo yum -y install nginx
# sudo systemctl start nginx
# sudo systemctl enable nginx
# sudo nano /etc/nginx/conf.d/softpedia.xyz.conf
server {
listen 80;
server_name softpedia.xyz;
location / { root /opt/alfresco-community/tomcat/webapps/ROOT;
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;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_pass http://localhost:8080;
proxy_redirect default;
}
location /share/ {
root /opt/alfresco-community/tomcat/webapps/share/;
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;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_pass http://localhost:8080/share/;
} location /alfresco/ {
root /opt/alfresco-community/tomcat/webapps/alfresco/;
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;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_pass http://localhost:8080/alfresco/;

}
}
# sudo systemctl restart nginx alfresco

Setup Firewalls for HTTP and HTTPS

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Scaling Jenkins on Demand

Top 10 HashMap questions in Java — Interview Preparation Guide — Part 1

Normalization to reduce redundancy and duplication

A Brief Overview of Bluetooth Low Energy

How To Use GraphQL With Magento 2.3?

How To Use GraphQL With Magento 2.3?

What’s ‘Next’ after Learn to Earn?

Gojowczyk — Giron (Live)”liveStream”

Lessons Learnt from Scaling Memcached in Production

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

GKE Ingress SSL with Google Managed Certificates

Scanning Files Of Terraform | Kubernetes | Helm Charts using CHECKOV

How to achieve application failover with AWS’s Auto Scaling Groups (Based on the updated GUI of…