Home >Backend Development >PHP Tutorial >How to build the latest wordpress on SAE, sae build wordpress_PHP tutorial

How to build the latest wordpress on SAE, sae build wordpress_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:11:14821browse

How to build the latest wordpress on SAE, build wordpress on sae

Install wordpress on SAE, create an application and select the wordpress template. After installation, it is version 3.4
Create a new version 2, download the latest wordpress installation package and extract it to version 2

Preliminary guess of where to change:

Database configuration: wp-config.php

Copy code The code is as follows:

/**
* WordPress basic configuration file.
*
* This file contains the following configuration options: MySQL settings, database table name prefix,
* Keys, WordPress language settings, and ABSPATH. For more information, visit
* {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. Please consult your space provider for specific information on MySQL settings.
*
* This file is used by the installation program to automatically generate the wp-config.php configuration file,
* You can manually copy this file, rename it to wp-config.php, and enter the relevant information.
*
* @Author Elmer Zhang
* @package WordPress
​*/
// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/**The name of the WordPress database*/
define('DB_NAME', SAE_MYSQL_DB);
/**MySQL database username*/
define('DB_USER', SAE_MYSQL_USER);
/**MySQL database password*/
define('DB_PASSWORD', SAE_MYSQL_PASS);
/**MySQL hosting*/
define('DB_HOST', SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT);
/**The default text encoding when creating a data table*/
define('DB_CHARSET', 'utf8');
/**Database collation type. If you are not sure, please do not change it.*/
define('DB_COLLATE', '');
define('WP_USE_MULTIPLE_DB', true);
/*$db_list = array(
        'write'=> array(
            array(
                'db_host' => SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,
                'db_user'=> SAE_MYSQL_USER,
                'db_password'=> SAE_MYSQL_PASS,
                'db_name'=> SAE_MYSQL_DB,
                'db_charset'=> 'utf8'
                )
            ),
        'read'=> array(
            array(
                'db_host' => SAE_MYSQL_HOST_S.':'.SAE_MYSQL_PORT,
                'db_user'=> SAE_MYSQL_USER,
                'db_password'=> SAE_MYSQL_PASS,
                'db_name'=> SAE_MYSQL_DB,
                'db_charset'=> 'utf8'
                )
            ),
        );
$global_db_list = $db_list['write'];*/
/**#@+
* Identity key setting.
*
* You can write any characters you want
* Or directly visit {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org private key generation service},
* Any modification will cause the cookie to expire and all users must log in again.
*
* @since 2.6.0
​*/
define('AUTH_KEY',         hash_hmac('sha1', SAE_ACCESSKEY . 'AUTH_KEY', SAE_SECRETKEY ));
define('SECURE_AUTH_KEY',  hash_hmac('sha1', SAE_ACCESSKEY . 'SECURE_AUTH_KEY', SAE_SECRETKEY ));
define('LOGGED_IN_KEY',    hash_hmac('sha1', SAE_ACCESSKEY . 'LOGGED_IN_KEY', SAE_SECRETKEY ));
define('NONCE_KEY',        hash_hmac('sha1', SAE_ACCESSKEY . 'NONCE_KEY', SAE_SECRETKEY ));
define('AUTH_SALT',        hash_hmac('sha1', SAE_ACCESSKEY . 'AUTH_SALT', SAE_SECRETKEY ));
define('SECURE_AUTH_SALT', hash_hmac('sha1', SAE_ACCESSKEY . 'SECURE_AUTH_SALT', SAE_SECRETKEY ));
define('LOGGED_IN_SALT',   hash_hmac('sha1', SAE_ACCESSKEY . 'LOGGED_IN_SALT', SAE_SECRETKEY ));
define('NONCE_SALT',       hash_hmac('sha1', SAE_ACCESSKEY . 'NONCE_SALT', SAE_SECRETKEY ));
/**#@-*/
/**
* WordPress data table prefix.
*
* If you need to install multiple WordPress in the same database, please set a different data table prefix for each WordPress.
* The prefix name can only be numbers and letters underlined.
*/
$table_prefix = 'wp_';
/**
* WordPress language setting, default is English.
*
* This setting allows WordPress to display the language you want.
* A .mo language file with the same name should be placed in wp-content/languages.
* To use WordPress Simplified Chinese interface, just fill in zh_CN.
​*/
define ('WPLANG', 'zh_CN');
/**
* Developer only: WordPress debug mode.
*
* Change this value to "true" and WordPress will display all development process prompts.
* Plug-in developers are strongly recommended to enable this feature in the development environment.
​*/
define('WP_DEBUG', false);
/* alright! Please do not continue editing. Please save this file. */
/**The absolute path to the WordPress directory.*/
if ( !defined('ABSPATH') )
Define('ABSPATH', dirname(__FILE__) . '/');
/**Set up WordPress variables and include files.*/
require_once(ABSPATH . 'wp-settings.php');

File (cache, image) reading and writing interface

Search for the word SAE in the SAE template project

Copy code The code is as follows:

sae_app_wizard.xml file
/wp-admin/includes/image-edit.php p224 –> p314
wp-adminincludesimage.php p95 –> p58
wp-adminplugins.php p46 –> p43
wp-includesfunctions.php p1296 p1474 p3515–> p1469 p1795 p4240
wp-includesmedia.php p426 –> p543

Bug fix during operation

Copy code The code is as follows:

wp-load.php p22-> define( 'ABSPATH', '' );
D:jdhublog1wp-includesfunctions.php p2934 –> Comment p3560

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/930486.htmlTechArticleHow to build the latest wordpress on SAE, sae builds wordpress, install wordpress on SAE, create an application and select the wordpress template, After installation, it is version 3.4. Create a new version 2 and download the latest wo...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn