← 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 website, 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://developer.wordpress.org/advanced-administration/wordpress/wp-config/ * * @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', '92885713f1da162c0decaf5f9d1ab30d44b26703e9be092ba7ec6bff135e93f6' ); /** 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', '53ipPN/1-i&oU;Vl.Xmw4]Ybk4Y3B!LT@2a.<GqXh(*KXVM[GW=IlMyf^xR`J+7N' ); define( 'SECURE_AUTH_KEY', '`,3I[-HwfEzxZyLfwI!A2MyX^U!97gWCOcdwymQ`JwM:#?S<K? D4C-YCM:|Lvg_' ); define( 'LOGGED_IN_KEY', 'MidTnBC+c`,q8/-Iz0|(PL{4zrhmW4<]t0P7{z)lo^u?.w{z8T~Y`|p8&`sZ8kMM' ); define( 'NONCE_KEY', 'qU/vT~VTWLc?Wf^kVT9:pZ#,Q@|#kH?|>RA94~zm&8)MJm.xA8lk[]nL5,7*94 ?' ); define( 'AUTH_SALT', 'L!vW|^B8Qq$6Q?=A`Sp9n<F&{+R~f$%*D8;.A,U([{a^=|rNj:*O[`rdy>,0It[e' ); define( 'SECURE_AUTH_SALT', ':TMeF~u0k;eq0J^&&9Jt,<A%%to8(L(nS-xooCAoi.(c#PCZhrRWWnKI(O8@q}kc' ); define( 'LOGGED_IN_SALT', '8^T#xY3)=aMXJZ+@+{T-h@sIEg^4j6sy~[rH~hzrym=_|V/:Oyb 7AS=V:y~)Pmh' ); define( 'NONCE_SALT', '0JK:]*;[A$?yc+u)[^0Z{h<m|bCu}pXJR~X|f2-!n}(Gc}hnn*0Q#XEr7@[6@f.T' ); /**#@-*/ /** * 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! * * At the installation time, database tables are created with the specified prefix. * Changing this value after WordPress is installed will make your site think * it has not been installed. * * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix */ $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://developer.wordpress.org/advanced-administration/debug/debug-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', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_AUTO_UPDATE_CORE', 'minor' ); define( 'WP_CACHE', true ); // Added by WP Rocket /* 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