FreeA tool by Divi Design Kit

WordPress Config Generator

Build a clean wp-config.php, .htaccess, Nginx block and PHP limits for local, staging or production, plus MySQL queries that clean junk out of the database.

Nothing leaves your browser Current WordPress constants Apache and Nginx

Environment

Database

From your host's control panel.

Security keys

Eight random 64 character keys, made in your browser with the same characters WordPress uses.

Fresh keys readyChanging them logs every user out.

URLs and SSL

Leave empty to keep the values stored in the database.

Debugging

Turn on while building, off on a live site.

Performance

Memory, revisions and scheduled tasks.

Updates

Hardening

Advanced

Less common switches. Each one changes how a core feature works.

Multisite

Several sites on one WordPress. Set the network only after Tools > Network Setup.

Server rules

Added to .htaccess (Apache) or the Nginx block.

PHP limits

Written as .user.ini (or php.ini). Some hosts set these in their panel instead.

Cleanup SQL

MySQL queries for phpMyAdmin or Adminer. They run in a safe order: content first, then the leftovers it creates.

Back up the database first. Deleted rows cannot be brought back. Red tags remove real content.

Report (read only)

Posts

Comments

Leftovers

Transients (cache in the options table)

Finish

Preview

Questions

Is anything I type sent to your server?

No. The files are built by JavaScript in this tab. Your database password and the security keys never leave your browser.

Can I replace my whole wp-config.php with this?

On a new install, yes. On a running site, copy only the lines you need: new security keys log every user out, and a different table prefix points WordPress at tables that do not exist.

Are the cleanup queries safe?

Back up the database first. The ones without a red tag only remove leftovers WordPress does not use, such as old revisions, spam and expired cache. The red ones remove real content.

Which PHP limits does Divi need?

The Divi recommended preset uses the values Divi's own Support Center checks: 128M memory, 64M uploads and posts, 120 seconds execution time, 60 seconds input time and 1000 input vars.