WordPress Wp-config.php Configuration Scripts
WordPress Wp-config.php Configuration Scripts
<?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:
* - * MySQL settings
- * Secret keys
- * Database table prefix
- * ABSPATH
* - @link https://wordpress.org/support/article/editing-wp-config-php/
* - @package WordPress
*/
\
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress / define( ‘DB_NAME’, ‘database_name_here’ ); \ /* MySQL database username / define( ‘DB_USER’, ‘username_here’ ); \ /* MySQL database password / define( ‘DB_PASSWORD’, ‘password_here’ ); \ /* MySQL hostname / define( ‘DB_HOST’, ‘localhost’ ); \ /* 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’, ‘put your unique phrase here’ ); define( ‘SECURE_AUTH_KEY’, ‘put your unique phrase here’ ); define( ‘LOGGED_IN_KEY’, ‘put your unique phrase here’ ); define( ‘NONCE_KEY’, ‘put your unique phrase here’ ); define( ‘AUTH_SALT’, ‘put your unique phrase here’ ); define( ‘SECURE_AUTH_SALT’, ‘put your unique phrase here’ ); define( ‘LOGGED_IN_SALT’, ‘put your unique phrase here’ ); define( ‘NONCE_SALT’, ‘put your unique phrase here’ ); \ /#@-/
\
/ - 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/support/article/debugging-in-wordpress/
/ define( ‘WP_DEBUG’, false ); \ / Add any custom values between this line and the “stop editing” line. / \ / 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’;
Edit Wp Config Php
At first you need to changing the following lines:
define(‘DB_NAME’, ‘database-autogarment’);
define(‘DB_USER’, ‘database-mashir’);
define(‘DB_PASSWORD’, ‘database-12345’);
define(‘DB_HOST’, ‘localhost’);
Change wordpress table prefix
$table_prefix
=
'wp_'
;
define(‘WP-HOME’,’http://localhost:8080/yourwordpresssite’);
define(‘WP-SITEURL’,’http://localhost:8080/yourwordpresssite’);
How to solve – PHP: display_errors 1 to 0 ?
To change the display_errors setting to 0 in WordPress, you can follow these steps:
1. Access your wp-config.php file:
Use file manager to access the wp-config.php file in your WordPress installation's root directory.
2. Edit the wp-config.php file:
Open the wp-config.php file in a text editor.
3. Locate the define('WP_DEBUG', true); Line:
If this line exists, comment it out by adding a double slash (//) before it.
4. Add the define('WP_DEBUG_DISPLAY', false); Line:
Add this line to the wp-config.php file. This will prevent PHP errors from being displayed on the frontend of your website.
5. Save the wp-config.php file:
Here is the chat: NC-RWN-0550
Save the wp-config.php file.
6. Refresh your website:
Refresh your website and check if the "Save has failed" error is resolved.
7. or add the below codes instaead of define('WP_DEBUG', true);
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Trackbacks/Pingbacks