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.
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.
The domain which will be configured using LPI-WP must be resolvable by the server, either via DNS or hosts file
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...]
LPI-WP relies on WCM configuration files. This mode is default, only two options are required:
- -u (Secondary Username)
- -s (Domain Name)
After Wordpress has successfully installed the script outputs the credentials for the WP admin user
- -c path to WCM config dir. /etc/buckhill-wcm is default
Can be ran on any LAMP installation, WCM is not required. It is assumed the MySQL server is running locally
Certain parameters are mandatory:
- -g enables generic mode
- -w web user. The user under PHP scripts are ran. On Ubuntu this is 'www-data'
- -d full path of a directory where Wordpress will be installed
- -u User which will be the owner of the Wordpress files. Can be the same as web user, but not recommended. Can be root.
- -e email address. Needed for Wordpress installation, otherwise final configuration will fail
- -s the domain name, must be resolvable locally or via DNS
- -m Database name. LPI-WP will by default automatically generate the DB name and DB user from the username and site name given. This can be overwritten by using this option
- -y Answer "y" to all questions
- -t path to temporary folder where Wordpress and modules are downloaded. Default is /tmp/wp_install
$ ./linux-package-installer-for-wordpress.sh -g -w www-data -d /var/www/yourdomain.com/public -u www-data -e firstname.lastname@example.org -s yourdomain.com -m databasename