Installing Alfresco Community Edition on CentOS

Prerequisites:

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

--

--

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