Installation of Wordpress

This brief instruction is to conform the ref book <Beginning Wordpress 3> and the online munal of WP official site.


  1. download zip archives from http://wordpress.org/download/;
  2. create a database in phpMyAdmin, for mySQL, with name of 'wordpress';
  3. create a user(mine is 'wordpress', please note that the host field should be 'localhost') only has privileges on this database, grant it all the possible permissions;
  4. unfold the zip file, and rename wp-config-sample.php to wp-config.php, open it in text editor, change the constants(according to http://codex.wordpress.org/Editing_wp-config.php), and generate security keys with the online service provided  by wordpress site(https://api.wordpress.org/secret-key/1.1/salt/);  
  5. copy the whole wordpress folder to C:\xampp\htdocs\;
  6. under C:\xampp\htdocs\wordpress\wp-content, create a folder named 'languages', under \wp-include is also valid, but the former is preferred since WP will firstly find it there;
  7. according to http://codex.wordpress.org/Installing_WordPress_in_Your_Language and http://codex.wordpress.org/WordPress_in_Your_Language, find out the link for Hong Kong language .mo and .po files:http://svn.automattic.com/wordpress-i18n/zh_HK/ and http://me.abelcheung.org/devel/wordpress-hong-kong-translation/, put them under \wp-content\languages\,
  8. in browser, go to localhost\wordpress\, and localhost\wordpress\wp-admin\install.php is loaded.
  9. the following steps is similar to the 'set configuration file' section in http://codex.wordpress.org/Installing_WordPress, just fill in the crrospending data, and then forward to the login page as administrator, and meanwhile, the front page is available.


Finally, the wp-config.php comes to be:

<?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wordpress');

/** MySQL database password */
define('DB_PASSWORD', 'wordpress');

/** 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', 'utf8_general_ci');

/**#@+
 * 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',         '%a1L9sEC(n<+dsc10,-b(|5@Y82#.|^GCnnL|e#qT.#:tE7LpkIu!+xHVr1yH+Xa');
define('SECURE_AUTH_KEY',  '#eA)uPB=}P:!.V9a@{ ,+A*#ush$[ Jh3]8:%v|@dHJO$l1z{`HROf#VU)>`GDHq');
define('LOGGED_IN_KEY',    '^!+@GR-0Nfxn>0&ljk:a^omv>:#eU.zIh6e.$(Ir,wy;VtaA$f^;{g@%z:0dHWmf');
define('NONCE_KEY',        'VOYjFNGP<wp|P&uHvLba}Lq|0WOU-:,eZGfC8CBBXpt!]Yi`b||No~s5{ mT-vL`');
define('AUTH_SALT',        '~Fn%o)49DQ{^6b8m%l]kL8W(}gi!w_8dw7V(9Zp6I+&V^8z~+b]]&0&=d_krkW[/');
define('SECURE_AUTH_SALT', 'T{meDP%ht_H0$-[^X*,Eh3uoOecT4az240AnV wpfN,wX)qdzkWe&Wq[5MHn_~G2');
define('LOGGED_IN_SALT',   '*6;T%L-N*A5@]X^[vCRt8l+J?9n&aBYzzR/D=y /,|QQ=e/HXD/,|![wV+qU7~x/');
define('NONCE_SALT',       '8orgHY6/xXox,swKLv;-fao=62XL-o>{.?1*<3J)ee==K`5d*{jC3QJfh1U$k=cs');

/**#@-*/

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

/**
 * WordPress Localized Language, defaults to English.
 *
 * Change this to localize WordPress. A corresponding MO file for the chosen
 * language must be installed to wp-content/languages. For example, install
 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
 * language support.
 */
define('WPLANG', 'zh_HK');

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



and the snapshot of the current default theme of wordpress:

wordpress




























  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值