ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Install Alfresco Community Edition On Ubuntu 17.04

    IT Discussion
    how-to alfresco nginx
    3
    7
    5.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NashBrydgesN
      NashBrydges
      last edited by

      This assumes you have already installed Ubuntu server on your VM. You're going to need at least 8GB memory. I realized this after I got an error with only 4GB assigned to the VM.

      1. Go to https://www.alfresco.com/alfresco-community-download

      2. Find the Linux download link and right-click and select "Copy link address"
        0_1501024185513_5d8656ab-f47d-4a56-b2a3-36e5af48b8c5-image.png

      3. Go back to your server and download Alfresco
        wget http://eu.dl.alfresco.com.s3.amazonaws.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin

      4. Create a directory for the installation
        sudo mkdir -p /var/www/html/alfresco

      5. You're going to need to add a few libraries (if you copy/paste, these should be single lines, the web page here may wrap longer lines)
        sudo add-apt-repository ppa:opencpn/opencpn
        sudo apt-get update
        sudo apt-get install -y libfontconfig1 libsm6 libice6 libxrender1 libxt6 libcups2 opencpn libcairo2 ttf-mscorefonts-installer

      6. Because you're installing MS Fonts, you'll have to accept the EULA
        0_1501025305316_b3ce802a-a0cb-40f3-a18e-946700f01235-image.png
        0_1501025336286_931b56a9-07f9-4bcc-8835-853ad8097483-image.png

      7. chmod and run
        chmod u+x alfresco-community-installer-201707-linux-x64.bin
        sudo ./alfresco-community-installer-201707-linux-x64.bin

      8. You'll get a warning about LibreOffice not being installed. Ignore, select "y" and continue.
        0_1501025552974_ad9d2b0a-e32b-497e-9ce1-11dc35638e7a-image.png

      9. Choose your language and press [ENTER]
        0_1501025606037_5c4ef73c-0610-4e00-aef4-4552b9440b93-image.png

      10. Choose option 2 for Advanced Install at the next screen
        0_1501025662986_99c6820d-7b6d-4344-8348-52df6965d692-image.png

      11. Choose the following options for the next 9 selections

      Java				– yes
      PostgreSQL			– yes
      LibreOffice			– yes
      Alfresco Community Edition	- yes
      Solr1				– no
      Solr4				- yes
      Alfresco Office Services	- yes
      Web Quick Start			– yes
      Google Docs Integration		– yes
      
      1. When prompted for an installation folder, enter the folder path you created in step #4 above
        0_1501025870684_0b034828-9424-4b8d-aa7d-807c5280a2ab-image.png

      2. For the next 8 selections, simply enter the default suggested values.

      Database Server Parameters	= port 5432
      Web Server domain		= 127.0.0.1
      Tomcat Server Port		= 8080
      Tomcat Shutdown Port		= 8005
      Tomcat SSL Port			= 8443
      Tomcat AJP Port			= 8009
      LibreOffice Server Port		= 8100
      Alfresco FTP Port		= 21
      
      1. When prompted for an Admin password, choose one and enter it in each of the following 2 selections
        0_1501026074966_eeb48bab-467a-44c2-a626-4ce147c776b2-image.png

      2. When prompted to install Alfresco as a service, choose "y" and press [ENTER]
        0_1501026137498_63a1b75b-7e2a-4f1d-83f5-56b8ffc2ea8a-image.png

      3. Proceed with installation
        0_1501026185059_fa5315bb-f150-479d-91be-5120024dbd09-image.png

      4. Select "n" to view Readme file and Launch Alfresco when prompted.

      This might take a while. Even after the screen shows the server has started, accessing the web page may take a few minutes so be patient. To access the web page go to the IP address of your server in your favorite browser.
      http://192.168.100.78:8080/share

      To configure SSL using Nginx, create a new conf file for your new site (assuming Nginx is already installed). In my case, I am running it on a separate server. I am running Nginx on 192.168.100.77 and Alfresco is running on 192.168.100.78 so my conf file looks like this.

      server {
         listen 80;
         server_name mydomain.com;
         return 301 https://$server_name$request_uri;
      }
      
      server {
        listen 443 ssl http2;
        server_name mydomain.com;
        
        add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
        add_header X-XSS-Protection "1; mode=block";
        add_header X-Content-Type-Options nosniff;
        add_header Referrer-Policy strict-origin;
        ssl_stapling on;
        ssl_stapling_verify on;
        server_tokens off;
      
        ssl on;
        ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        ssl_dhparam /etc/ssl/certs/dhparam.pem;
        proxy_cookie_path / "/; secure; HttpOnly";
        rewrite ^/$ /share;
      
      
          location / {
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header Host $http_host;
              proxy_set_header X-NginX-Proxy true;
              proxy_pass https://192.168.100.78:8443;
              proxy_redirect off;
      
              # Socket.IO Support
              proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection "upgrade";
         }
      }
      
      1. Test your Nginx conf file and if everything looks ok, restart Nginx
        sudo nginx -y
        sudo systemctl restart nginx

      One important thing to remember is that, and this is the one thing that stumped me for a bit and took some Googling to find, enabling SSL means that you must change the proxy_pass port number as well as protocol to "https" (change IP address as needed). I've removed domain name and site name in the attachment below.
      proxy_pass https://192.168.100.78:8443;
      0_1501026768948_b5b2550d-4067-45f7-8ddd-50a70cb9891d-image.png

      1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller
        last edited by

        Nice, I need to get this up and running and check it out. Been forever since I used Alfresco.

        Are you just testing it out, or using in production?

        NashBrydgesN 1 Reply Last reply Reply Quote 0
        • NashBrydgesN
          NashBrydges @scottalanmiller
          last edited by

          @scottalanmiller Just testing it out for now but so far so good. I had a client ask me for a good document management solution that wouldn't break the bank and could be hosted locally so I immediately thought of this. I've given him access to see if this could work and from the sounds of his feedback, he might want it setup.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @NashBrydges
            last edited by

            @nashbrydges said in Install Alfresco Community Edition On Ubuntu 17.04:

            @scottalanmiller Just testing it out for now but so far so good. I had a client ask me for a good document management solution that wouldn't break the bank and could be hosted locally so I immediately thought of this. I've given him access to see if this could work and from the sounds of his feedback, he might want it setup.

            Cool, would be good to see some threads on it. Been so long since I've used it.

            stacksofplatesS 1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates @scottalanmiller
              last edited by

              @scottalanmiller said in Install Alfresco Community Edition On Ubuntu 17.04:

              @nashbrydges said in Install Alfresco Community Edition On Ubuntu 17.04:

              @scottalanmiller Just testing it out for now but so far so good. I had a client ask me for a good document management solution that wouldn't break the bank and could be hosted locally so I immediately thought of this. I've given him access to see if this could work and from the sounds of his feedback, he might want it setup.

              Cool, would be good to see some threads on it. Been so long since I've used it.

              I use the hosted one. They gave you 10GB for free. Idk if they still do that or not.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @stacksofplates
                last edited by

                @stacksofplates said in Install Alfresco Community Edition On Ubuntu 17.04:

                @scottalanmiller said in Install Alfresco Community Edition On Ubuntu 17.04:

                @nashbrydges said in Install Alfresco Community Edition On Ubuntu 17.04:

                @scottalanmiller Just testing it out for now but so far so good. I had a client ask me for a good document management solution that wouldn't break the bank and could be hosted locally so I immediately thought of this. I've given him access to see if this could work and from the sounds of his feedback, he might want it setup.

                Cool, would be good to see some threads on it. Been so long since I've used it.

                I use the hosted one. They gave you 10GB for free. Idk if they still do that or not.

                I didn't even know that they did hosted.

                stacksofplatesS 1 Reply Last reply Reply Quote 0
                • stacksofplatesS
                  stacksofplates @scottalanmiller
                  last edited by

                  @scottalanmiller said in Install Alfresco Community Edition On Ubuntu 17.04:

                  @stacksofplates said in Install Alfresco Community Edition On Ubuntu 17.04:

                  @scottalanmiller said in Install Alfresco Community Edition On Ubuntu 17.04:

                  @nashbrydges said in Install Alfresco Community Edition On Ubuntu 17.04:

                  @scottalanmiller Just testing it out for now but so far so good. I had a client ask me for a good document management solution that wouldn't break the bank and could be hosted locally so I immediately thought of this. I've given him access to see if this could work and from the sounds of his feedback, he might want it setup.

                  Cool, would be good to see some threads on it. Been so long since I've used it.

                  I use the hosted one. They gave you 10GB for free. Idk if they still do that or not.

                  I didn't even know that they did hosted.

                  Ya the free one didn't seem advertised much. I'll have to see if I can find a sign up link again.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post