View on GitHub

Linux Package Installer for Wordpress

A module for LPI which automatically installs Wordpress, easily and securely. Optionally, add-ons can also be installed automatically

Download this project as a .zip file Download this project as a tar.gz file

Linux Package Installer for Wordpress (LPI-WP)

Blog Post: https://www.buckhill.co.uk/blog/how-to-automatically-install-wordpress-plus-plugins/6

LPI-WP installs and auto configures Wordpress, with by default, ssh-sftp-updater, w3-total-cache and Wordfence security modules. Additional default modules can be specified.

LPI-WP is primarily designed to work with Web Chroot Manager (WCM) (https://github.com/Buckhill/web-chroot-manager), but with extra parameters provided it can function independently on any generic LAMP installation.

Limitations

LPI-WP has been designed for Ubuntu 12.04+ LTS. Debian is not yet officially support but should work. CentOS/Redhat support are due with the next release.

It is assumed MySQL is listening on 127.0.0.1:3306, although this can be changed by editing the DB_SERVER variable within the shell file.

Installation requirements

The domain which will be configured using LPI-WP must be resolvable by the server, either via DNS or hosts file

How to use LPI-WP

There are two modes, WCM mode (default) and generic mode

WCM can be found here: https://github.com/Buckhill/web-chroot-manager

Usage: ./linux-package-installer-for-wordpress.sh [options...]

WCM mode

LPI-WP relies on WCM configuration files. This mode is default, only two options are required:

After Wordpress has successfully installed the script outputs the credentials for the WP admin user

Optional arguments:

Generic mode

Can be ran on any LAMP installation, WCM is not required. It is assumed the MySQL server is running locally

Certain parameters are mandatory:

Optional arguments:

Generic mode example command

$ ./linux-package-installer-for-wordpress.sh -g -w www-data -d /var/www/yourdomain.com/public -u www-data -e youremail@yourdomain.com -s yourdomain.com -m databasename