LiteCloud is based on a project called TuxLite, a free collection of shell scripts for immidiate deployment of LEMP stacks (Linux, Nginx, MySQL and PHP 8.1) for Ubuntu 22.04 (TLS) x64.
- Nginx
- MariaDB or MySQL
- PHP-FPM + commonly used PHP modules
- Let's Encrypt SSL
- Postfix mail server (securely configured to be outgoing only)
- Supports Ubuntu 22.04, Debian 12.1
- A server with at least 512MB RAM. (1GB and above is recommended)
- Basic Linux knowledge. You will need know how to connect to your server remotely.
- Basic text editor knowledge. For beginners, learning GNU nano is recommended.
If this is your first time with a Linux server, head over to Digital Ocean Community section and I suggest spending some time reading through tutorials.
# Install git and clone LiteCloud
git clone https://github.com/giobautista/LiteCloud.git ; cd LiteCloud ; chmod 700 *.sh ; chmod 700 options.conf
# Edit options to enter server IP, MariaDB/MySQL password etc.
nano options.conf
# Install LEMP stack.
./install.sh
# To add user
adduser johnsmith
# To add user to sudoer
usermod -aG sudo johnsmith
# Add domains to the user
./domain.sh add johnsmith yourdomain.com
./domain.sh add johnsmith subdomain.yourdomain.com
# Add SSL certificates using Let's Encrypt
./domain.sh ssl johnsmith yourdomain.com
./domain.sh ssl johnsmith subdomain.yourdomain.com
# Install Adminer or phpMyAdmin
./setup.sh dbgui
# Enable/disable public viewing of Adminer/phpMyAdmin
./domain.sh dbgui on
./domain.sh dbgui off
# Create and drop database
./database.sh add db - Create new database
./database.sh rem db - Destroy a database (cannot be undone)
# Create and remove user
./database.sh add user - Create new user
./database.sh add super_user - Create new SUPER user
./database.sh rem user - Remove a user (cannot be undone)
We want to run a very efficient webserver using minimal server specifications and Nginx will allow us to do that over Apache. (no debate intended, which is a better webserver)
- Database management
- db (add, remove)
- user (add, remove)
- Run Nginx with Apache
- Nginx runs proxy
- Apache as backend