{"id":357,"date":"2026-04-09T16:48:30","date_gmt":"2026-04-09T06:48:30","guid":{"rendered":"https:\/\/www.the-bach.kiwi\/?page_id=357"},"modified":"2026-05-16T14:04:11","modified_gmt":"2026-05-16T04:04:11","slug":"site-setup-wordpress-deployment","status":"publish","type":"page","link":"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/","title":{"rendered":"Site Setup &#8211; WordPress Deployment"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Obtain-WordPress\" >Obtain WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Deploy-Files\" >Deploy Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Configure-wp-configphp\" >Configure wp-config.php<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#DB-connection\" >DB connection<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#WordPress-Security-Initialisation\" >WordPress Security Initialisation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Debug-settings-off-for-prod\" >Debug settings (off for prod)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Custom-variables-and-HTTP-Forwarding\" >Custom variables and HTTP Forwarding<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.the-bach.kiwi\/index.php\/skunkworks\/site-setup-process-guide\/site-setup-wordpress-deployment\/#Support-permalinks-through-apache2\" >Support permalinks through apache2<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Obtain-WordPress\"><\/span>Obtain WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download latest OR reuse stable version<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deploy-Files\"><\/span>Deploy Files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy into:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/com.evalue-it.www\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configure-wp-configphp\"><\/span>Configure <code>wp-config.php<\/code><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"DB-connection\"><\/span>DB connection<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/** The name of the database for WordPress *\/\ndefine( 'DB_NAME', 'p_mydb' );\n\n\/** Database username *\/\ndefine( 'DB_USER', 'p_mydb' );\n\n\/** Database password *\/\ndefine( 'DB_PASSWORD', 'secret password' );\n\n\/** Database hostname *\/\ndefine( 'DB_HOST', '10.3.6.134' );\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"WordPress-Security-Initialisation\"><\/span>WordPress Security Initialisation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noreferrer noopener\">Generate unique AUTH\/SALT keys<\/a><\/li>\n\n\n\n<li>Insert into <code>wp-config.php<\/code><\/li>\n\n\n\n<li>Verify not default placeholders<\/li>\n\n\n\n<li>Store copy in secure vault alongside DB user (KeePass)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Debug-settings-off-for-prod\"><\/span>Debug settings (off for prod)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_DEBUG', false );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Custom-variables-and-HTTP-Forwarding\"><\/span>Custom variables and HTTP Forwarding<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Insert the following, CHANGING the variables, below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Add any custom values between this line and the \"stop editing\" line. *\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>define('WP_HOME', '<strong>https:\/\/foo.ensite.me<\/strong>');\ndefine('WP_SITEURL', '<strong>https:\/\/foo.ensite.me<\/strong>');\n\nif (isset($_SERVER&#91;'HTTP_X_FORWARDED_PROTO']) &amp;&amp; $_SERVER&#91;'HTTP_X_FORWARDED_PROTO'] === 'https') {\n    $_SERVER&#91;'HTTPS'] = 'on';\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* That's all, stop editing! Happy publishing. *\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Support-permalinks-through-apache2\"><\/span>Support permalinks through apache2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Update the sites-available config file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;Directory \/var\/www\/me.ensite.foo>\n        Options FollowSymLinks\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory><\/code><\/pre>\n\n\n\n<p>Enable rewrites<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite\nsudo apache2ctl configtest\nsudo systemctl restart apache2<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Obtain WordPress Deploy Files Configure wp-config.php DB connection WordPress Security Initialisation Debug settings (off for prod) Custom variables and HTTP Forwarding Insert the following, CHANGING the variables, below: Support permalinks through apache2 Update the sites-available config file Enable rewrites<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":348,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-357","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/pages\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":5,"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/pages\/357\/revisions"}],"predecessor-version":[{"id":536,"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/pages\/357\/revisions\/536"}],"up":[{"embeddable":true,"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/pages\/348"}],"wp:attachment":[{"href":"https:\/\/www.the-bach.kiwi\/index.php\/wp-json\/wp\/v2\/media?parent=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}