{"id":29927,"date":"2022-08-09T01:25:14","date_gmt":"2022-08-09T01:25:14","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/"},"modified":"2026-09-28T07:22:55","modified_gmt":"2026-09-28T07:22:55","slug":"how-to-edit-the-wp-config-php-file-on-staq","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/hk\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/","title":{"rendered":"How to edit the wp-config.php file on Staq"},"content":{"rendered":"<p>Website constants live on Staq Panel \u2192 <strong>Server<\/strong> \u2192 <strong>WP Config File<\/strong>. Add the constant in the table, then save the draft.<\/p>\n<h2>Open WP Config File<\/h2>\n<ol>\n<li>Open the website in Staq Panel.<\/li>\n<li>Click <strong>Server<\/strong>.<\/li>\n<li>Click <strong>WP Config File<\/strong>.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2026\/09\/wp-config.png\" alt=\"WP Config File page showing Add Constant button\" \/><\/p>\n<h2>Add or edit a constant<\/h2>\n<ol>\n<li>Click <strong>Add Constant<\/strong>.<\/li>\n<li>Enter the name and value in the editor that opens.<\/li>\n<li>Click <strong>Add to draft<\/strong>.<\/li>\n<li>Click <strong>Save Changes<\/strong> on the unsaved bar.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2026\/09\/wp-config-add.png\" alt=\"Add Constant editor showing name, value, and PHP preview fields\" \/><\/p>\n<h2>FAQ<\/h2>\n<h3>I cannot add WP_MEMORY_LIMIT<\/h3>\n<p>Memory belongs on <strong>PHP Config<\/strong>, not in this table. See <a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/increasing-server-memory\/\">Increasing Server Memory<\/a> to change request memory. Platform-owned names cannot be saved here.<\/p>\n<h3>How do I regenerate salts?<\/h3>\n<p>Click <strong>Regenerate Salts<\/strong> on this same page. It signs everyone out of WordPress.<\/p>\n<h3>Can I apply a constant to all websites?<\/h3>\n<p>Yes. Go to <strong>Global Settings<\/strong> \u2192 <strong>WP Config<\/strong> to add constants that apply to all existing and future websites.<\/p>\n<h2>Related<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/increasing-server-memory\/\">Increasing Server Memory<\/a> for PHP request memory.<\/li>\n<\/ul>\n<h2>Need some help?<\/h2>\n<p>Open a support ticket if the control is not in Staq, or the change does not save.<\/p>\n","protected":false},"featured_media":29651,"parent":0,"template":"","class_list":["post-29927","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-wordpress-hosting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Website constants live on Staq Panel \u2192 Server \u2192 WP Config File. Add the constant in the table, then save the draft. Open WP Config File Open the website in Staq Panel. Click Server. Click WP Config File. Add or edit a constant Click Add Constant. Enter the name and value in the editor that&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-28T07:22:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/add-wp-config-details.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1107\" \/>\n\t<meta property=\"og:image:height\" content=\"658\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/\",\"name\":\"How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/add-wp-config-details.png\",\"datePublished\":\"2022-08-09T01:25:14+00:00\",\"dateModified\":\"2026-09-28T07:22:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/#breadcrumb\"},\"inLanguage\":\"en-hk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-hk\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/add-wp-config-details.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/add-wp-config-details.png\",\"width\":1107,\"height\":658},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-edit-the-wp-config-php-file-on-staq\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to edit the wp-config.php file on Staq\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-hk\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-hk\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/","og_locale":"en_US","og_type":"article","og_title":"How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress","og_description":"Website constants live on Staq Panel \u2192 Server \u2192 WP Config File. Add the constant in the table, then save the draft. Open WP Config File Open the website in Staq Panel. Click Server. Click WP Config File. Add or edit a constant Click Add Constant. Enter the name and value in the editor that&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2026-09-28T07:22:55+00:00","og_image":[{"width":1107,"height":658,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/add-wp-config-details.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/","name":"How to edit the wp-config.php file on Staq - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/add-wp-config-details.png","datePublished":"2022-08-09T01:25:14+00:00","dateModified":"2026-09-28T07:22:55+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/#breadcrumb"},"inLanguage":"en-hk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/"]}]},{"@type":"ImageObject","inLanguage":"en-hk","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/add-wp-config-details.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/add-wp-config-details.png","width":1107,"height":658},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-edit-the-wp-config-php-file-on-staq\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to edit the wp-config.php file on Staq"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-hk"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-hk","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/knowledgebase\/29927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/media\/29651"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/media?parent=29927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}