GithubHelp home page GithubHelp logo

simhaonline / lxd-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevin-sangeelee/lxd-wordpress

0.0 0.0 0.0 6 KB

Script to generate a WordPress site in an LXD container.

Shell 100.00%

lxd-wordpress's Introduction

lxd-wordpress

Bash script to generate an LXD WordPress site, configured with a Let's Encrypt certificate and an Exim installation for delivering WordPress notification emails.

Getting Started

You may want to first copy 'build.sh' to something like 'build-my-site.sh', since there are some environment variables at the top of the script that should be edited according to your installation. In particular, HOST and DB_PASS will need to be set to something specific to your installation.

Prerequisites

To run this script, you will need a working 'lxc' command on your host. See here for details on installing LXD.

I used snapd to install on Debian 9. Snap is simply a package manager by Canonical, and can be installed directly on Debian 9 onwards with 'sudo apt-get install snapd'.

Installing

With the script edited appropriately, it should be enough to just run ./build.sh (or whatever you copied it as before editing.

When the script has finished, if all went well, you can connect to the container with 'lxc exec wp-container bash'. This will put you in a root prompt inside the container.

From here, things should look like an ordinary VPS, with Apache and Exim running. You should be able to connect to your site and follow on with the standard WordPress configuration wizard.

There are a few notes here from when I originally moved to LXD for WordPress.

Contributing

This code is simply a generalised version of something I used for my own site. There's plenty of room for improvement, so pull-requests are welcome.

License

This project is licensed under the GNU GPLv2.

Acknowledgments

  • Thanks in particular to Neilpang for his awesome acme.sh script for generating Let's Encrypt certificates. Being dependent on nothing but bash helped significantly reduce the size of the container, which was one of my goals.

lxd-wordpress's People

Contributors

kevin-sangeelee 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.