{"id":13464,"date":"2026-01-18T02:19:57","date_gmt":"2026-01-18T02:19:57","guid":{"rendered":"https:\/\/zoomdang.com\/?p=13464"},"modified":"2026-03-31T04:57:12","modified_gmt":"2026-03-31T04:57:12","slug":"installing-a-wordpress-site","status":"publish","type":"post","link":"https:\/\/zoomdang.com\/index.php\/2026\/01\/18\/installing-a-wordpress-site\/","title":{"rendered":"Installing a wordpress site"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1216.8px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><h2>Preparing the domain<\/h2>\n<p>Set CNAME of @ \/ root to traefik.1streward.com<\/p>\n<p>Bypass cache for admin<\/p>\n<blockquote>\n<p>(http.cookie contains &#8220;wordpress_logged_in_&#8221;) or (starts_with(http.request.uri.path, &#8220;\/wp-admin&#8221;)) or (http.request.uri.path eq &#8220;\/wp-login.php&#8221;)<\/p>\n<\/blockquote>\n<p>Cache everything else<\/p>\n<\/div><div class=\"fusion-text fusion-text-2\"><p><strong>Installing myPhPAdmin<\/strong><\/p>\n<p>Look for the Service UUID. It is the part after the @ in MySQL URL. This will be my PMA_Host for wordpress, and Host\/ IP for phpMyadmin.<\/p>\n<p>Create a new mysql user in phpMyadmin, generate password and grant specific database privilege to this user. Remember to username and password.<\/p>\n<p><strong>Install wordpress without database<\/strong>.<\/p>\n<p>Docker Compose file should be edit to include the directory where backup files will be uploaded<\/p>\n<blockquote>\n<p>\u00a0 \u00a0 \u2013 \u2018\/data\/coolify\/backups\/wordpress\/[Folder Name]:\/var\/www\/html\/wp-content\/updraft\u2019<\/p>\n<\/blockquote>\n<p>Remember to update WordPress and Site address to https after installation<\/p>\n<p><img decoding=\"async\" class=\"lazyload alignnone size-full wp-image-13474\" src=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3.png\" data-orig-src=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3.png\" alt=\"\" width=\"1146\" height=\"174\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%271146%27%20height%3D%27174%27%20viewBox%3D%270%200%201146%20174%27%3E%3Crect%20width%3D%271146%27%20height%3D%27174%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-150x23.png 150w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-200x30.png 200w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-300x46.png 300w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-400x61.png 400w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-600x91.png 600w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-768x117.png 768w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-800x121.png 800w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3-1024x155.png 1024w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/EBCFB938-082B-48B9-8F00-04CF69B430F3.png 1146w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/p>\n<\/div><div class=\"fusion-text fusion-text-3\"><p>Use the code below to force https on URL<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-1 > .CodeMirror, .fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-1 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_1\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_1\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_1\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/x-sh\">cat <<EOF > wp-config.tmp\n<?php\n\\$_SERVER['HTTPS'] = 'on';\n\n$(cat wp-config.php | sed '1s\/^<?php\/\/')\nEOF\nmv wp-config.tmp wp-config.php<\/textarea><\/div><div class=\"fusion-image-element \" style=\"--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><span class=\" fusion-imageframe imageframe-none imageframe-1 hover-type-none\" style=\"border-radius:5px;\"><img decoding=\"async\" width=\"1140\" height=\"696\" title=\"coolify-https-configuration-2.png\" src=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png.webp\" data-orig-src=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png.webp\" alt class=\"lazyload img-responsive wp-image-13475\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%271140%27%20height%3D%27696%27%20viewBox%3D%270%200%201140%20696%27%3E%3Crect%20width%3D%271140%27%20height%3D%27696%27%20fill-opacity%3D%220%22%2F%3E%3C%2Fsvg%3E\" data-srcset=\"https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-150x92.webp 150w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-200x122.webp 200w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-300x183.webp 300w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-400x244.webp 400w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-600x366.webp 600w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-768x469.webp 768w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-800x488.webp 800w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png-1024x625.webp 1024w, https:\/\/zoomdang.com\/wp-content\/uploads\/2026\/01\/coolify-https-configuration-2.png.webp 1140w\" data-sizes=\"auto\" data-orig-sizes=\"(max-width: 1024px) 100vw, (max-width: 640px) 100vw, 1140px\" \/><\/span><\/div><div class=\"fusion-text fusion-text-4\"><p>If migration fails, check file permission for backup files. Most likely file permission isn&#8217;t www-data<br \/>\nchange permission for files in wp-content\/updraft. Mind the dot in the end of command<\/p>\n<blockquote>\n<p><span class=\"hljs-comment\"># 1. Set Ownership for everything here<\/span>\u00a0sudo chown -R root:www-data .<\/p>\n<p><span class=\"hljs-comment\"># 2. Set Permissions for everything here<\/span> sudo chmod -R 775 .<\/p>\n<\/blockquote>\n<\/div><div class=\"fusion-text fusion-text-5\"><p>Update .htaccess to increase max file size<\/p>\n<p>&nbsp;<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-2 > .CodeMirror, .fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-2 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_2\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_2\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_2\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/x-sh\">cat <<EOF >> .htaccess\n\n# Custom PHP settings\nphp_value upload_max_filesize 256M\nphp_value post_max_size 256M\nphp_value max_execution_time 300\nphp_value max_input_time 300\nEOF<\/textarea><\/div><div class=\"fusion-text fusion-text-6\"><p>Add the following in Compose file if wordpress fails to fetch data from plugins.<\/p>\n<\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-3 > .CodeMirror, .fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-3 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_3\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_3\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_3\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/yaml\">services:\n  wordpress:\n    # ... existing settings ...\n    dns:\n      - 8.8.8.8\n      - 1.1.1.1<\/textarea><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13464","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/posts\/13464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/comments?post=13464"}],"version-history":[{"count":13,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/posts\/13464\/revisions"}],"predecessor-version":[{"id":13497,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/posts\/13464\/revisions\/13497"}],"wp:attachment":[{"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/media?parent=13464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/categories?post=13464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zoomdang.com\/index.php\/wp-json\/wp\/v2\/tags?post=13464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}