wp-config.php generator

A free tool by Javier Casares and WPdanger
Database name used by WordPress.
Username used to access database.
Password used by username to access database.
Host of your database server. A port number, Unix socket file path or pipe may be needed as well.
Database character set used by WordPress.
Database collation used by WordPress.
Prefix placed before WordPress tables.
Use a custom 'wp_user' table, without prefix.
Use a custom 'wp_usermeta' table, without prefix.
Improve information encryption stored at user's cookies. Also, use WordPress API 'salt' generator.
Force HTTPS on login page (/wp-login.php).
Force HTTPS on admin pages (/wp-admin/).
Allows control over fatal errors.
URL with information about PHP updates/upgrades.
Your Wordpress site URL. Like https://www.example.com/blog. Without trailing slash.
Your WordPress core files URL. Like https://www.example.com/wordpress. Without trailing slash.
Custom 'wp-content' absolute path. Like /home/example.com/public_html/wp-content. Without trailing slash.
Custom 'wp-content' URL. Like https://www.example.com/wp-content. Without trailing slash.
Custom 'plugins' absolute path. Like /home/example.com/public_html/wp-content/plugins. Without trailing slash.
Custom 'plugins' URL. Like https://www.example.com/wp-content/plugins. Without trailing slash.
Custom 'uploads' relative path. Like wp-content/uploads. Without start or trailing slash.
Hostname to set up cookies. Like something.example.com.
Value to check if cookies are active. Like wordpress_test_cookie.
Cookie with logged in info. Like wordpress_logged_in_ + hash.
Cookie with secure auth info. Like wordpress_sec_ + hash.
Cookie with auth info. Like wordpress_ + hash.
Cookie with password info. Like wordpresspass_ + hash.
Cookie with user info. Like wordpressuser_ + hash.
Autosave seconds (in post / pages...). WordPress default: 60 seconds.
Content revisions. 0 for unlimited. WordPress default: unlimited.
Use trash for Media. WordPress default: disabled.
Days to empty trash content. WordPress default: 30 days.
Who posts by mail? WordPress default: 5 minutes.
Frontend memory limit. WordPress default: 40MB.
Backend memory limit. WordPress default: 64MB.
Allow WordPress automatic updating.
WordPress core automatic updating. Major versions (5.x); Minor versions (5.0.x).
Install new bundled plugins or themes on updates.
Upgrade automatically the database tables when needed.
Warning: Disabling this option could create problems if you do not know how to upgrade manually.
Enable or disable update and installation inside /wp-admin/.
Enable or disable the plugin/theme editor.
When you restore the original image, overwrites the set created.
Allows use of cache.
Compresses CSS.
Compresses scripts.
Concatenates scripts.
Forces GZIP compression for browsers.
Use the internal WP-Cron. Default: enabled.
If you have problems with the actual cron, try this. Default: disabled.
Cron timeout, in seconds. Default: 60 seconds.
Enables feed reader cache.
Absolute FTP path to WordPress core files.
Absolute FTP path to content files.
Absolute FTP path to plugin files.
Absolute FTP path to public key.
Absolute FTP path to private key.
FTP or SSH username.
FTP or SSH password.
FTP or SSH hostname.
Allows SFTP connection (not SSH FTP).
Full path, without trailing slash. Default: /wp-content/mu-plugins.
Full URL, without trailing slash. Like https://www.example.com/wp-content/mu-plugins.
Relative to ABSPATH, without trailing slash. Default: wp-content/mu-plugins.
Disables scripts and HTML tags. Default: enabled. Warning: Disabling this option could allow Cross-site scripting (XSS) attacks.
Disables insecure files to be uploaded (like PHP files). Default: enabled. Warning: Disabling this option could allows big security risks.
Enables feed reader cache.
Feed reader cache directory. Relative path to /wp-content/. Like cache caching on /wp-content/cache.
How old the feed reader cache must be to invalidate?.
Enables feed reader debugger.
User-Agent to retrieve feeds.
Fetch timeout, in seconds. Default: 5 seconds.
Use GZIP on fetching feeds.
Enables WordPress MultiSite or Network or MultiNetwork.
Enabled means subdomains, disabled means folders.
Main URL if a sub-site does not exists. Like https://www.example.com/.
Default theme when a new site is created.
Blocks HTTP external URL requests.
List of hosts to which exceptionally you will have access.
This was developed in response to the problem of the core update function failing with hosts running under suexec(). If a host uses restrictive file permissions (e.g. 400) for all user files, and refuses to access files which have group or world permissions set, these definitions could solve the problem.
The proxy host or IP address.
The proxy port.
The proxy username (if protected).
The proxy password (if protected).
Hosts to bypass (if needed).
Debug mode for errors and warnings.
Display errors and warnings on screen.
Log code errors and warnings.
Changes default log file path with your path and file.
Log code errors and warnings.
Save SQL database queries.
Clean and restart


/* Database connection */
define'DB_NAME''your_own_database_name' );
define'DB_USER''your_own_database_user' );
define'DB_PASSWORD''your_own_database_password' );
define'DB_HOST''localhost' );
define'DB_CHARSET''utf8mb4' );
define'DB_COLLATE''utf8mb4_general_ci' );

/* Tables */
$table_prefix 'wp9vqyeq_';

/* Security */
/* Security Keys */
define'AUTH_KEY''~Z6AcQ?]pel{CuztCE)>gXSeTtLqa?ls[3%PsdmmYmvO+MT$e2Hki[t*QH][em8q' );
define'SECURE_AUTH_KEY''OG+rU>^Ceht_p7_j#9~&R!ZD9A[4|7y|Rt~afgt@]Q:,){~QchBftOL<A/MCDz@@' );
define'LOGGED_IN_KEY''~j@:L=k#R?},w?^MX$xrsOn3$jDjK%8?>_Bb3ApL)n2t$5mm*tyXRJWiNRM?0j79' );
define'NONCE_KEY''b9Iv<K$tLt2+O=jlQ^Sgv|qLG}Y]:hh8[1=s2/ipNgYO-0uiUQ?F8%1v[48C,|5N' );
define'AUTH_SALT''|0+l7&e4Ur6WVS=qzEs!UR8SUQ8Z|LIXp{V70RL[sXaIqh~7Dvwt4us;dUY[I^q=' );
define'SECURE_AUTH_SALT''n5S>MCZp<$r&H(OVi8>2^/)$(,,t4O>xmL-SESYw$][PcX6=qgn)M-md8QdY$Or}' );
define'LOGGED_IN_SALT''K,^G?{e76?YqD!V,JH.f=PuLvY@{r[^*C.i{0:VU!@:~{I]}?,Gs.9J.GPJL}<LN' );
define'NONCE_SALT''@y6[@iml{DS-&v08m1jniA]a>jKE1#,@8;j,<$JGw9^]4P~dnrAPHh)2I;5v.=j:' );
/* HTTPS */

/* URL / Path */

/* Cookies */
define'TEST_COOKIE''wordpress_test_cookie' );
define'COOKIEHASH''Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );
define'LOGGED_IN_COOKIE''wordpress_logged_in_Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );
define'SECURE_AUTH_COOKIE''wordpress_logged_in_Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );
define'AUTH_COOKIE''wordpress_Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );
define'PASS_COOKIE''wordpresspass_Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );
define'USER_COOKIE''wordpressuser_Q5O6GjSEk96RlARqrAGXXIXkJUdECSFxRhu5plg0Uekze712Jx6NRMqUE1uEsHqS' );

/* Content */
define'MEDIA_TRASH'true );
define'WP_MAIL_INTERVAL'86400 );

/* Memory */
define'WP_MEMORY_LIMIT''128MB' );
define'WP_MAX_MEMORY_LIMIT''256MB' );

/* Updating */
define'WP_AUTO_UPDATE_CORE''minor' );

/* File edition */
define'DISALLOW_FILE_MODS'false );
define'DISALLOW_FILE_EDIT'true );

/* Performance */
define'WP_CACHE'true );
define'COMPRESS_CSS'true );
define'COMPRESS_SCRIPTS'true );
define'ENFORCE_GZIP'true );

/* Cron */
define'DISABLE_WP_CRON'false );
define'ALTERNATE_WP_CRON'false );

/* FTP Access */

/* Plugins Must-Use */

/* Filtering */

/* Feed reader */
define'MAGPIE_CACHE_ON'true );
define'MAGPIE_CACHE_DIR''cache' );
define'MAGPIE_CACHE_AGE'3600 );
define'MAGPIE_DEBUG'false );
define'MAGPIE_USER_AGENT''Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0' );
define'MAGPIE_USE_GZIP'true );

/* MultiSite */
define'WP_ALLOW_MULTISITE'false );
define'WP_DEFAULT_THEME''twentynineteen' );

/* External URL Requests */
define'WP_HTTP_BLOCK_EXTERNAL'false );
if ( 
define'WP_ACCESSIBLE_HOSTS''*.wordpress.org,*.github.com' );

/* File permissions */

/* Proxy */

/* Debug */
define'WP_DEBUG'false );
if ( 
define'WP_DEBUG_DISPLAY'false );
define'WP_DEBUG_LOG'false );
define'SCRIPT_DEBUG'false );
define'SAVEQUERIES'false );

/* Do not change anything else after this line! Thank you! */

if ( ! defined'ABSPATH' ) )
define'ABSPATH'dirname__FILE__ ) . '/' );
ABSPATH 'wp-settings.php';