Logo       PBase-Foundation

WordPress

Wordpress all-in-one stack

Here's how to stand up an all-in-one WordPress instance on an Apache server with a MySQL database with default configuration.
After running the first two preconfig packages be sure to modify the configuration files in the /usr/local/pbase-data/admin-only/module-config.d/ directory. Specifically, the pbase_lets_encrypt.json must be changed to hold your site administrator's email address.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-mysql-wordpress
yum -y install pbase-wordpress-allinone
yum -y install pbase-lets-encrypt

Extras

You should secure your server with pbase-firewall-enable, and lock down SSH access with the pbase-ssh-fail2ban package.

yum -y install pbase-ssh-fail2ban
yum -y install pbase-firewall-enable

Module by module install

## preconfig
yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-mysql-wordpress
## apache and mysql
yum -y install pbase-apache
yum -y install pbase-mysql
## optional - to add sample content
yum -y install vrl-preconfig
yum -y install vrl-website-content
## wordpress
yum -y install pbase-wordpress
## and if your domain is registered in DNS
yum -y install pbase-lets-encrypt

Configuration Options

The pbase-preconfig-mysql-wordpress rpm provides three configuration files. Theses default configuration files enable PHP on the Apache server, creates a database called "wordpress" and set the base URI to "wordpress".

{
"pbase_apache" : {
"addSelfToEtcHosts": false,
"addSecurityHeaders": true,
"restrictHttpMethods": true,
"useSitesEnabledConf": false,
"enableIndexPhp": true,
"serverAdmin": "yoursysadmin@yourrealmail.com"
}
}
{
"pbase_mysql": [
{
"default": {
"hostName": "localhost",
"rootPassword": "SHOmeddata",
"port": "3306",
"characterSet": "utf8mb4",
"startService": true,
"install": true,
"database": [
{
"name": "wordpress",
"user": "admin",
"password": "shomeddata"
}
]
}
}
]
}
{
"pbase_wordpress": {
"wordpressUriBase": "wordpress"
}
}