How to Install Alfresco Community Edition on RHEL/CentOS 7/6 and Debian 8

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Hosting referral link if you planning to start your blog ($3.82/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

25 Responses

  1. JR says:

    Excellent tutorial, I Used a lot of it for my setup. I have everything working with nginx including a certificate. When I go to https://share it shows the cert and when I login it goes back to the http page.

    On the resulting page if I switch http to https it sticks from that page forward, but for some reason the transition from the login page to the next page it switches to http. Missing something?

    Thanks.

    JR

    • Matei Cezar says:

      It looks like a redirect issue with your nginx configuration. Post your nginx configuration in order to debug the issue.

      • JR says:

        Please find my configuration.

        user nginx;
        worker_processes auto;
        error_log /var/log/nginx/error.log;
        pid /run/nginx.pid;
        # Load dynamic modules. See /usr/share/nginx/README.dynamic.
        include /usr/share/nginx/modules/*.conf;
        events {
        worker_connections 1024;
        }
        http {
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        '$status $body_bytes_sent "$http_referer" '
        '"$http_user_agent" "$http_x_forwarded_for"';
        access_log  /var/log/nginx/access.log  main;
        sendfile            on;
        tcp_nopush          on;
        tcp_nodelay         on;
        keepalive_timeout   65;
        types_hash_max_size 2048;
        include             /etc/nginx/mime.types;
        default_type        application/octet-stream;
        # Load modular configuration files from the /etc/nginx/conf.d directory.
        # See http://nginx.org/en/docs/ngx_core_module.html#include
        # for more information.
        include /etc/nginx/conf.d/*.conf;
        server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /usr/share/nginx/html;
        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;
        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-Forward-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        }
        error_page 404 /404.html;
        location = /40x.html {
        }
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
        }
        }
        server {
        listen 443;
        server_name _;
        ssl_certificate           /etc/nginx/ssl/alfresco.meyo.local.crt;
        ssl_certificate_key       /etc/nginx/ssl/alfresco.meyo.local.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.
        }
        }
        
        • Matei Cezar says:

          Configuration file looks OK! Try to force the redirect from http to https by adding the following line after the server_name directive on default 80 default server: return 301 https://$host$request_uri;

          Also, make sure you delete of all your browser cache.

          • JR says:

            Thanks for the help, partly worked or worked but I noticed some other things:

            With https, not https, after login get “Something’s Wrong with this page” at https://alfresco/share/pages/dologin. Refresh brings it to the dashboard.

            Also when in https the logout button doesn’t do anything. and the use current page/use my dashboard under the user’s login name do nothing. When I added that redirect in and select another page, those buttons just mentioned say they couldn’t update the homepage.

            Thoughts?

            Thanks.

            JR

        • Matei Cezar says:

          Completley remove http portion from nginx conf file (server directives with port 80 ) and let nginx bind only on https port. This way you should see if the problem persist. In http directives I see an include statement to /etc/nginx/default.d/*.conf. Are there any conf files in that directory that could break or confuse the redirect?

  2. Med Bohzekri says:

    Hi
    I have an error following the execution of the installation alfresco.

    [root@server ~]#chmod +x alfresco-community-5.0.d-installer-linux-x64.bin

    [root@server ~]#./alfresco-community-5.0.d-installer-linux-x64.bin
    ./alfresco-community-5.0.d-installer-linux-x64.bin: ligne1: Syntax error near the unexpected symbol <>
    ./alfresco-community-5.0.d-installer-linux-x64.bin: ligne1: ”

    thx

  3. Silent J says:

    Has there been a version change in nginx? My nginx.conf file does not look like yours and when I do step 13, I receive a ‘”location” directive is not allowed here in /etc/nginx/nginx.conf:35; configuration file /etc/nginx/nginx.conf test failed’ error.

    This is the best guide on the net; any help or updates would be hugely appreciated!

    • Matei Cezar says:

      Post your entire nginx.conf configuration here to see where the problem resides.

      • Silent J says:

        Following is the default nginx.conf file without any edits:

        user www-data;
        worker_processes auto;
        pid /run/nginx.pid;

        events {
        worker_connections 768;
        # multi_accept on;
        }

        http {

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        # server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ##
        # SSL Settings
        ##

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        ##
        # Logging Settings
        ##

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        ##
        # Gzip Settings
        ##
        gzip on;
        gzip_disable “msie6”;

        # gzip_vary on;
        # gzip_proxied any;
        # gzip_comp_level 6;
        # gzip_buffers 16 8k;
        # gzip_http_version 1.1;
        # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

        ##
        # Virtual Host Configs
        ##

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
        }

        #mail {
        # # See sample authentication script at:
        # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
        #
        # # auth_http localhost/auth.php;
        # # pop3_capabilities “TOP” “USER”;
        # # imap_capabilities “IMAP4rev1” “UIDPLUS”;
        #
        # server {
        # listen localhost:110;
        # protocol pop3;
        # proxy on;
        # }
        #
        # server {
        # listen localhost:143;
        # protocol imap;
        # proxy on;
        # }
        #}

        • Matei Cezar says:

          The issue is very simple, if you look closely to your nginx configuration file you will see that it ships with separate virtual hosts configuration files. I suggest you add the proxy block in the specific configuration file from sites-enabled directory.

  4. Khampol says:

    Hi,
    Just want to know after install you can map alfresco as windows drive (smb or cifs) ?
    thx.

  5. Juan Jose MOrales says:

    Hello, nice guide work perfect but i need a little help if you test ms office plugging or libre office to preview document and editing online you know something about that

  6. and says:

    Hi, trying to install Alfresco on CetOS 7: at the end I have error:

    error running /home/y/postgresql/bin/createuser -p 5432 -U postgres

    any Ideas?

  7. napata says:

    typos!!
    firewall-cmd –ad-port=8080/tcp –permanent
    # firewall-cmd –ad-port=8443/tcp –permanent
    # firewall-cmd –ad-port=7070/tcp –permanent
    # firewall-cmd –reload

    should be –add-port and –permanent

  8. Gregory Richardson says:

    Hello Matei, I’m planning to install community on my server and I wanted to know if you had a document version of the instructions I can download.

  9. Bouzeghoub says:

    Dear All,
    Thank you so much.
    Please,do you have best how tô integrate workflow.
    Best Regards.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?