Obtain WordPress
- Download latest OR reuse stable version
Deploy Files
- Copy into:
/var/www/com.evalue-it.www
Configure wp-config.php
DB connection
/** The name of the database for WordPress */
define( 'DB_NAME', 'p_mydb' );
/** Database username */
define( 'DB_USER', 'p_mydb' );
/** Database password */
define( 'DB_PASSWORD', 'secret password' );
/** Database hostname */
define( 'DB_HOST', '10.3.6.134' );
WordPress Security Initialisation
- Generate unique AUTH/SALT keys
- Insert into
wp-config.php - Verify not default placeholders
- Store copy in secure vault alongside DB user (KeePass)
Debug settings (off for prod)
define( 'WP_DEBUG', false );
Custom variables and HTTP Forwarding
Insert the following, CHANGING the variables, below:
/* Add any custom values between this line and the "stop editing" line. */
define('WP_HOME', 'https://foo.ensite.me');
define('WP_SITEURL', 'https://foo.ensite.me');
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
/* That's all, stop editing! Happy publishing. */
Support permalinks through apache2
Update the sites-available config file
<Directory /var/www/me.ensite.foo>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Enable rewrites
sudo a2enmod rewrite
sudo apache2ctl configtest
sudo systemctl restart apache2