Skip to content

Commit

Permalink
Update POST-INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
basilhendroff authored Oct 20, 2020
1 parent 52dc32f commit ba995c5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions POST-INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
## Manual Post-Installation Tasks
Assuming your WordPress jail is named `wordpress`, note the DB root password `cat /root/wordpress_db_password.txt`. You will need this to secure the MariaDB.
The following tasks are done within the WordPress jail.

To complete the following tasks, use a terminal to connect to the jail `iocage console wordpress`.

1. Securing MariaDB
2. Authentication Unique Keys and Salts
3. Configure Redis
4. Configure and test sSMTP
5. Configure phpMyAdmin
1. Secure MariaDB
2. Set up Authentication Unique Keys and Salts
3. Configure and test sSMTP
4. Configure phpMyAdmin

There is the opportunity to incorporate some of the above within the WordPress script. For more information, refer to the blog post [WordPress Script: Opportunities for Improvement](https://blog.udance.com.au/2020/09/20/wordpress-script-opportunities-for-improvement/).

### 1. Securing MariaDB
Run the script `/usr/local/bin/mysql_secure_installation`.
### 1. Secure MariaDB
Assuming your WordPress jail is named `wordpress`, note the DB root password `cat /root/wordpress_db_password.txt`.

Use a terminal to enter the jail `iocage console wordpress`.

### 2. Authentication Unique Keys and Salts
Run the script `/usr/local/bin/mysql_secure_installation` making use of the DB root password noted previously.

### 2. Set up Authentication Unique Keys and Salts
In a browser, enter https://api.wordpress.org/secret-key/1.1/salt/.

In your terminal window, edit wp-config.php `cd /usr/local/www/wordpress && ee wp-config.php` and replace the relevant section with the contents from the browser.

### 3. Configure Redis
For WordPress to use Redis, install and activate the Redis Object Cache plugin. Using the plugin, `Enable Object Cache `.

### 4. Configure and test sSMTP
### 3. Configure and test sSMTP
Edit the file `/usr/local/etc/ssmtp/ssmtp.conf`:

`cd /usr/local/etc/ssmtp && ee ssmtp.conf`
Expand Down Expand Up @@ -55,7 +53,7 @@ Status messages should indicated that the mail was sent successfully. If there a

Don't exit the jail just yet.

### 5. Configure phpMyAdmin
### 4. Configure phpMyAdmin
From a browser, use the WordPress jail IP to go to the address `http://jail_ip/phpmyadmin/setup` and configure a database server host.

Click `New server`.
Expand Down Expand Up @@ -93,6 +91,9 @@ blog.mydomain.com {

You're now ready to do the famous five-minute WordPress installation. Do this by entering your WordPress site FQDN in a browser e.g. https://blog.mydomain.com

### Configure Redis
For WordPress to use Redis, install and activate the Redis Object Cache plugin. Using the plugin, `Enable Object Cache `.

## References
1. [How to install WordPress](https://wordpress.org/support/article/how-to-install-wordpress/)
2. [Install WordPress with Nginx Reverse Proxy to Apache on Ubuntu 18.04 – Google Cloud](https://www.cloudbooklet.com/install-wordpress-with-nginx-reverse-proxy-to-apache-on-ubuntu-18-04-google-cloud/)
Expand Down

0 comments on commit ba995c5

Please sign in to comment.