首页 > 编程语言 >wp-config.php的配置文件

wp-config.php的配置文件

时间:2023-12-21 15:11:07浏览次数:44  
标签:php 配置文件 here WordPress put unique config your define

<?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 Editing wp-config.php « WordPress Codex

*

* @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 Codex.

*

* @link https://codex.wordpress.org/Debugging_in_WordPress

*/

define('WP_DEBUG', false);

 

/* That's all, stop editing! Happy blogging. */

 

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

 

/** Sets up WordPress vars and included files. */

require_once(ABSPATH . 'wp-settings.php')

标签:php,配置文件,here,WordPress,put,unique,config,your,define
From: https://www.cnblogs.com/bylk-zizai/p/17919089.html

相关文章

  • Windows phpstudy vscode Xdebug调试无效,无法监听,没有什么效果
    Windows phpstudy vscodeXdebug调试无效,无法监听,没有什么效果vscode正常,能启动,能标记,就是无法监听打印phpinfo(); Xdebug版本3打印的信息输入这里,找出对应PHPXdebug的dll文件Xdebug:Support—TailoredInstallationInstructions会出给检查结果,下面是我的再看看VSCODE插......
  • configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
    gitclone git://gcc.gnu.org/git/gcc.gitgcc-CXX17gitcheckoutorigin/release/gcc-12./configureconfigure:error:BuildingGCCrequiresGMP4.2+,MPFR3.1.0+andMPC0.8.0+.Trythe--with-gmp,--with-mpfrand/or--with-mpcoptionstospecifytheirlocation......
  • PHP本地进行API接口测试的实例
    最近写API接口,每写一个接口,我自己需要先测试一下,看有没有语法错误,请求的数据对不对,但是很多都是POST请求,没法直接在浏览器中打开链接进行测试,所以必须要有个可以在本地发HTTP请求的模拟工具,模拟一下数据请求。一开始我是这么干的,在本机wampserver运行目录下创建一个文件,在里边写Cu......
  • webmen等框架真的比php-fpm快吗?
    php-fpm+nginx代码<?phpusleep(100000);echo"helloworld";?>wrk-c200-t50-d10shttp://127.0.0.1/Running10stest@http://127.0.0.1/50threadsand200connectionsThreadStatsAvgStdevMax+/-......
  • centos7 下安装 moodle历史命令(未能包含vim 修改配置文件)
    1init02cd"/data/webapps/moodle"3cd/data/webapps/4ls5ll6cdmoodle/7ls8ll9vimlib/outputrenderers.php10ll11cd../12ll13chmod-R0777./moodle/14ll15......
  • vue3 静态配置文件
    前言有时候我们负责做的只是一个大平台系统下的某个子系统,有时候我们需要调用这个大平台系统下别的子系统的接口。如果直接把别的接口地址,直接写在代码里,那么如果别的子系统的接口调整了,会影响到我们的系统,我们还要重新打包,部署,会很繁琐。解决思路我们的想法是这样:敲代码的......
  • ThinkPHP6 关于事件的简单应用
    一、序章ThinkPHP6的手册中关于【事件】章节的介绍都是直接文字说明,给出创建的类文件,并没有一个好的示例来进行补充说明。对于刚接触【事件】的同学在阅读理解上增加了一点点困难,本文就在此结合示例简单叙述下。 二、事件事件的使用分两种方式,一个是不使用事件类,另一个使用事......
  • Windows系统phpstudy+PbootCMS搭建网站记录
    环境Windows10phpstudyv8.1          下载地址:https://www.xp.cn/download.htmlPbootCMSv3.2.4  下载地址:https://www.pbootcms.com/安装phpstudy 官网下载安装包,直接安装,安装完成后如下:PHP默认安装版本为:php7.3.4nts添加PHP的sqlite3扩展不添加扩展访......
  • php+dm达梦数据库简单连接
    1.安装php准备php环境,下载phpstudy,自带php7.3.4nts,安装好以后如果系统环境变量没有配置要配置一下php的的系统环境变量2.安装达梦数据库win64+dmv8在达梦数据库的文件夹中选择合适版本的扩展文件复制到达梦的各版本扩展文件所在位置:php的扩展文件中php的扩展文件: 配置p......
  • 搭建lnmp环境-nginx关联php-fpm (第三步)
     永久关闭防火墙sudosystemctlstopfirewalldsudosystemctldisablefirewall 安装php扩展 php-fpmyum-y installphp-fpm systemctlstart php-fpm.servicesystemctlenable php-fpm.service  修改php-fpm用户/etc/php-fpm.d/www.conf新增用户:www(userad......