Git Product home page Git Product logo

liferay-ubuntu-nginx-certbot's Introduction

Install new liferay instance

Clone this repo to a temp folder.
git clone https://github.com/avido/liferay-ubuntu-nginx-certbot.git .

Install required packages

apt get update
sudo apt-get install libncurses5
sudo apt-get install nginx

Copy example nginx site to /etc/nginx/site-available \ the .ssl version is a guideline for after installing certbot, we adjust the automated config adjust by certbot a bit (snippets/)

Edit example file to your needs
Symlink config file in enabled sites.
sudo ln -s /etc/nginx/sites-available/<site> /etc/nginx/sites-enabled/<site>
Test nginx config sudo nginx -t
Reload nginx config sudo nginx -s reload \

Install certbot

wget https://dl.eff.org/certbot-auto

sudo mv certbot-auto /usr/local/bin/certbot-auto

sudo chown root /usr/local/bin/certbot-auto

sudo chmod 0755 /usr/local/bin/certbot-auto

sudo /usr/local/bin/certbot-auto --nginx

-- install certificate sudo certbot --nginx -d example.com -d www.example.com

https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/

Auto renewal should be present in /etc/cron.d/ if not you can copy the snippet

adjust nginx config with ssl part (snippet)

sudo cp -r snippets /etc/nginx/ edit your site config

Install liferay

wget https://bitnami.com/redirect/to/712122/bitnami-liferay-7.2.0-4-linux-x64-installer.run

Give exec rights to bitname installer
chmod +x bitnami-liferay-7.2.0-4-linux-x64-installer.run

sudo ./bitnami-liferay-7.2.0-4-linux-x64-installer.run

adjust tomcat server.xml

  • append tomcat-server-snippet.xml contents to /opt/liferay-7.2.0-4/apache-tomcat/conf/server.xml

Autostart of tomcat (after server reboot)

sudo cp tomcat /etc/init.d/ sudo chmod +x /etc/init.d/tomcat sudo systemctl enable tomcat

Reboot system to check all succeeded

liferay-ubuntu-nginx-certbot's People

Contributors

avido avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.