In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to build or migrate WordPress on engine BAE". In the operation of actual cases, many people will encounter this dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Install and configure WordPress
1. Registered account
To use Baidu BAE related services, you need to register relevant accounts (this is a must), of course, there are other Baidu accounts can be logged in directly. Open the BAE home page http://developer.baidu.com/, fill in the relevant information to register and activate the account:
two。 Create a project
Write the application name casually, and then uncheck the bottom two ticks for the time being.
The basic information of the application will be generated after creation.
3. Add deployment
Open the Application engine on the left, and then click add deployment on the right
The name is still casually filled in, the name and domain name can be different, please fill in the domain name! Type, please select "php-web", the code version tool according to your preferences, select "svn" here, other default can (PS: below to pay XX yuan, please ignore for the time being, followed by instructions. )
After the creation is completed, copy the SVN address spare
4. Create a MySQL database
Click to expand Services-add New Services-MySQL
Choose package-package one (free)
5. Upload the code to Baidu BAE server using Svn or Git
Download and install svn: http://tortoisesvn.net/downloads.html (just install "next step" directly. I'll talk about how to use SVN next time, and you can also have information about Baidu.)
After the installation is complete, create a new SVN working folder on your local computer, right-click the folder and select "SVN Checkout"
Fill in the previously copied SVN address here "URL ofrepository:"
After pressing OK, a small window similar to entering the account number and password will pop up. Please fill in the Baidu account secret.
6. Download the WordPress installation package (now compatible with BAE without any changes)
Http://cn.wordpress.org/, unzips and copies all files under the WORDPRESS folder to the SVN working folder
Select all copied files-right-click-select "TortoiseSVN"-"Add" to add files
Right-click in the blank space of this folder and select "SVN Conmmit" to submit
7. Release updates
Go back to Baidu BAE management page, refresh the page and release it quickly.
8. Install WordPress
Click "Click View"
It is important to note that the user name and password here are "API Key/Secret Key of the application". In the upper right corner of the Baidu BAE management console page.
9. Fill in the database information
The database name, database user name, password, and database host will be seen after you click into your WP database.
As shown in the following figure, the connection address for the database name is the database host, and the port is typed after the host: 4050
Installation process is consistent with the ordinary host installation, since the installation is complete, it needs to be explained that because BAE disabled the PHP function, so the email description can not be sent, you need to use the BAE message queue to complete the email function, these two parts are not explained too much here, interested friends can search the relevant information.
Migrate the original WordPress to BAE
1. Migrate the original Blog database
There are several changes that need to be made to export with phpMyadmin.
Search for the following words, if any, and then delete the lines.
The code is as follows:
*! 40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
SET COLLATION_CONNECTION=@OLD_COLLATION_CO
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
This is my experience from repeated failed imports.
Then compress it into zip and upload it to Baidu Cloud for storage. Then select zip from the database import interface to start importing the data.
If the import still fails, please follow the prompts in this interface to modify the sql script, where I changed it several times. The weirdest one is a line of INSERT INTO `wp_ posts` that somehow leads to failure. Maybe a field contains illegal characters. In the end, you have to delete the field in this line, import it successfully, and then fill it up manually. This depends entirely on your own flexibility. If necessary, select single-line mode before export to facilitate troubleshooting:
two。 Bind a custom domain name
The function entry is in the "release Settings" and needs to be filed in advance.
3. Modify DNS parsing
Delete or deactivate the original resolution at the DNS resolution provider and add a line of CNAME records pointing to the default domain name similar to hankcs.duapp.com. Then try ping to make sure the parsing is valid:
This is the end of "how to build or migrate WordPress on the engine BAE". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.