Unable to Write to wp-config.php File: WordPress Install Fix
Fix the WordPress installer error “Unable to write to wp-config.php file”: create the file by hand or with WP-CLI, then fix folder ownership.
Step-by-step fixes for WordPress errors, plus code, WP-CLI, SQL and server recipes for developers and site owners.
Fix the WordPress installer error “Unable to write to wp-config.php file”: create the file by hand or with WP-CLI, then fix folder ownership.
WordPress stuck on “Briefly unavailable for scheduled maintenance”? Delete the .maintenance file, then find and repair the update that failed.
Fix “Your browser sent a request that this server could not understand” when saving a WordPress menu: cookies, WAF rules, size limits, max_input_vars.
Fix “Sorry, you are not allowed to access this page” in wp-admin: restore admin roles with WP-CLI, reset capabilities and repair a table prefix mismatch.
Fix “There has been a critical error on this website” in WordPress: use the recovery email, read debug.log and disable the broken plugin or theme.
Fix “Error establishing a database connection” in WordPress: test DB credentials, reset the MySQL password, fix DB_HOST and repair tables.
Stop junk usernames on single-site WordPress: apply the multisite username rules with a mu-plugin, cover WooCommerce and clean up with WP-CLI.
Saving blocks fails with a memory error in object-cache.php? Raise the limit, find big Redis keys and shrink autoloaded options with WP-CLI.
WordPress 7.2 moves plugin items in the editor Options menu into a Panels submenu. Find them, drop the as prop and fix CSS and tests.
Only some WordPress pages loop with ERR_TOO_MANY_REDIRECTS? Trace the redirect with curl and find the rule in .htaccess, plugins or Cloudflare.