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: 40 MB.
Backend memory limit. WordPress default: 64 MB.
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


<?php

/* 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 'wpu26n5s_';

/* Security */
/* Security Keys */
define'AUTH_KEY''zw2mH^&Mbl0b)fl6Zie8(zlQIcFEq^{Y9]B16)R0LDt4wMf/d(^R@Gt&&BsR&$&X' );
define'SECURE_AUTH_KEY''Sp~rg[{c,@=s,QR,Qg0_bR*QMR]R=fN[flCn^SBrRw|YIL,=C.I&~ZP#:uURDV8X' );
define'LOGGED_IN_KEY''.w:b][jZg<LV%dZPrq3tgeisH$inZ(=EHWw9h^e!z0a_pwb#D(dM2frxA+Z7^?A8' );
define'NONCE_KEY''OdY=;;3{FmvsN=ffmU|41&6EwqkA-4*|k&-nA(-*<-)cz|x&KwVrP;dBSYj{T+3@' );
define'AUTH_SALT'':Qevk;KK,,-iVH~hD[lq-UR|,Jxqd!5q%].ijblyJ.Z9sj/dcngu[~+Vq:Z6}Px+' );
define'SECURE_AUTH_SALT''rYMB$&yUB(>DS2:9#*!$b[es@UCWyELdQzD_q:H_kl+l)~c~RU@*+~?C53J<?ZQz' );
define'LOGGED_IN_SALT''ImB9^]f[Z.m?2_@ViZUnS3mr(3}Z6(Kq/X3FuT;LQ0#?]VS+Ks8-~B.yJNA#-r71' );
define'NONCE_SALT''dhcUjVgxh&SBsak>w@Pq]vYyJ0~GggiS=h^>Ej3z8nB==XP>B+/@G},Pa)H1}$m-' );
/* HTTPS */
define'WP_DISABLE_FATAL_ERROR_HANDLER'false );

/* URL / Path */

/* Cookies */
define'TEST_COOKIE''wordpress_test_cookie' );
define'COOKIEHASH''uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );
define'LOGGED_IN_COOKIE''wordpress_logged_in_uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );
define'SECURE_AUTH_COOKIE''wordpress_logged_in_uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );
define'AUTH_COOKIE''wordpress_uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );
define'PASS_COOKIE''wordpresspass_uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );
define'USER_COOKIE''wordpressuser_uRPUQkmvCdc0vsNxTIBOYV2UtP5zmSks5u9fMMqzm7EPOhqJZzRstVh7ds8yWeKt' );

/* Content */
define'AUTOSAVE_INTERVAL'30 );
define'WP_POST_REVISIONS');
define'MEDIA_TRASH'true );
define'EMPTY_TRASH_DAYS');
define'WP_MAIL_INTERVAL'86400 );

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

/* Updating */
define'AUTOMATIC_UPDATER_DISABLED'false );
define'WP_AUTO_UPDATE_CORE''minor' );
define'CORE_UPGRADE_SKIP_NEW_BUNDLED'true );

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

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

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

/* FTP Access */

/* Plugins Must-Use */

/* Filtering */
define'DISALLOW_UNFILTERED_HTML'false );
define'ALLOW_UNFILTERED_UPLOADS'false );

/* Feed reader */
define'MAGPIE_CACHE_ON'true );
define'MAGPIE_CACHE_DIR''cache' );
define'MAGPIE_CACHE_AGE'3600 );
define'MAGPIE_CACHE_FRESH_ONLY'false );
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_FETCH_TIME_OUT');
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 ( 
WP_HTTP_BLOCK_EXTERNAL ) {
    
define'WP_ACCESSIBLE_HOSTS''*.wordpress.org,*.github.com' );
}

/* File permissions */

/* Proxy */

/* Debug */
define'WP_DEBUG'false );
if ( 
WP_DEBUG ) {
    
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__ ) . '/' );
require_once 
ABSPATH 'wp-settings.php';