← Back
Editing: wp-config.php
<?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the installation. * You don't have to use the web site, you can copy this file to "wp-config.php" * and fill in the values. * * This file contains the following configurations: * * * Database settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/documentation/article/editing-wp-config-php/ * * @package WordPress */ // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'bitnami_wordpress' ); /** Database username */ define( 'DB_USER', 'bn_wordpress' ); /** Database password */ define( 'DB_PASSWORD', '09fe43af57e6422ecfb2444c4c3d22f98d496ab2011536b0cd75734a89c6f7ca' ); /** Database hostname */ define( 'DB_HOST', '127.0.0.1:3306' ); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication unique keys and salts. * * Change these to different unique phrases! You can generate these using * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}. * * You can change these at any point in time to invalidate all existing cookies. * This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', '[1Q4FpDAx7!n))FMAQ^P(k&$Yv=M+;g1QB@WtaW=Fr*y?mz-dPGtrDx[ A=iS_OA' ); define( 'SECURE_AUTH_KEY', ':;cNJ%X94OnKR)AuY]qRy1WafoJ5VH={},*e +?i*(i4ro4EXHAPwd*k-QHw,SdT' ); define( 'LOGGED_IN_KEY', '%pQuEg0ATEnhSmRxWG0F mp cnblq^a[-lq/C3U,MkaE{%S=x8uc<kdJGeF9y-(3' ); define( 'NONCE_KEY', 'GZBu![O/P)%%60_>a*?5$o%zAw7VD?YrY,{4.*]w&-^Zf}9:f9}tn*%B<ZPpG81s' ); define( 'AUTH_SALT', 'r+IJZOUG.c;-YEMNx(oRTxd]fayQ_fbDUY~l>ufafCBk*^q5=@x|8P~].+m}ww8%' ); define( 'SECURE_AUTH_SALT', 'C]R2ecYY6lX;K7LbN+:sXt#F^v`~mEmA?K<Hl=n{4I4/0tG{_oos{F!h]T$H05?|' ); define( 'LOGGED_IN_SALT', ':Lv#*1Nk5L)x`09)vfHZGGu {vcbNlOzOdEj+7-KUF0t@Lw~E;I]~+I>X=mZ^Plk' ); define( 'NONCE_SALT', '9.ADts5kiP51TG%l S%%_d5w-l-YExgm((7L8LM q,:+F@)5.=1m+I*4lFQNn;Us' ); /**#@-*/ /** * WordPress database table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://wordpress.org/documentation/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false ); /* Add any custom values between this line and the "stop editing" line. */ define( 'FS_METHOD', 'direct' ); /** * The WP_SITEURL and WP_HOME options are configured to access from any hostname or IP address. * If you want to access only from an specific domain, you can modify them. For example: * define('WP_HOME','http://example.com'); * define('WP_SITEURL','http://example.com'); * */ if ( defined( 'WP_CLI' ) ) { $_SERVER['HTTP_HOST'] = '127.0.0.1'; } define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_AUTO_UPDATE_CORE', 'minor' ); define( 'WP_CACHE', true ); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php'; /** * Disable pingback.ping xmlrpc method to prevent WordPress from participating in DDoS attacks * More info at: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/xmlrpc-and-pingback/ */ if ( !defined( 'WP_CLI' ) ) { // remove x-pingback HTTP header add_filter("wp_headers", function($headers) { unset($headers["X-Pingback"]); return $headers; }); // disable pingbacks add_filter( "xmlrpc_methods", function( $methods ) { unset( $methods["pingback.ping"] ); return $methods; }); }
Save File
Cancel