On the SAE to build the latest WordPress method _php Example

Source: Internet
Author: User
Tags mysql host sha1 wordpress database

Install the WordPress on the SAE, create application Select WordPress template, after installation is 3.4 version
Create a new version 2, download the latest WordPress installation package and unzip to version 2

Preliminary Speculations Modify Place:

Database configuration: wp-config.php

Copy Code code as follows:

<?php
/**
* WordPress Basic configuration file.
*
* This file contains the following configuration options: MySQL settings, database table name prefixes,
* Key, WordPress language settings and Abspath. For more information, please visit
* {@link http://codex.wordpress.org/Editing_wp-config.php edit
* wp-config.php} Codex page. MySQL Setup Specific information please consult your space provider.
*
* This file is for the installer to automatically generate the wp-config.php configuration file.
* You can manually copy this file, rename it to wp-config.php, and then enter the relevant information.
*
* @Author Elmer Zhang <freeboy6716@gmail.com>
* @package WordPress
*/
* * MySQL Settings-specific information from the host you are using * *//
/** WordPress Database Name * *
Define (' Db_name ', sae_mysql_db);
/** MySQL Database User name * *
Define (' Db_user ', sae_mysql_user);
/** MySQL Database Password * *
Define (' Db_password ', sae_mysql_pass);
/** MySQL Host * *
Define (' Db_host ', sae_mysql_host_m. ': '. Sae_mysql_port);
/** The default text encoding when creating a datasheet * *
Define (' Db_charset ', ' UTF8 ');
/** database collation type. If you are unsure, please do not change
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 set.
*
* You can write some characters freely
* or direct access to {@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 have multiple WordPress requirements installed in the same database, please set a different data table prefix for each wordpress.
* Prefix names can be underlined only in numbers and letters.
*/
$table _prefix = ' wp_ ';
/**
* WordPress language Settings, the default is English.
*
* This setting allows WordPress to display the language you need.
* Wp-content/languages should place the. Mo language file with the same name.
* To use the WordPress Simplified Chinese interface, just fill in the ZH_CN.
*/
Define (' Wplang ', ' zh_cn ');
/**
* Developer-specific: WordPress debugging mode.
*
* Change this value to "true" and WordPress will display hints for all development processes.
* It is strongly recommended that the plugin developer enable this feature in the development environment.
*/
Define (' Wp_debug ', false);
* * OK! Please do not continue editing. Please save the file. */
/** the absolute path of 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, picture) read-write interface

Search SAE Template Project SAE Word

Copy code The code is as follows:

\sae_app_wizard.xml file
/wp-admin/includes/im age-edit.php p224–> p314
\wp-admin\includes\image.php p95–> p58
\wp-admin\plugins.php p46–>  ; P43
\wp-includes\functions.php p1296 p1474 p3515–> p1469 p1795 p4240
\wp-includes\media.php p426–> P5 The

Run bug modification

Copy code code is as follows:

wp-load.php p22-> (' Define ', ');
D:\jdhublog\1\wp-includes\functions.php p2934–> Comments p3560

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.