In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure the local environment of wordpress, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
1. Search the Internet for "wordpress download" to download the wordpress package.
Download directly from https://wordpress.org/download/
two。 Download the wordpress package, extract it and put it under the service item path (/ Users/gaopeng/eclipse-workspace/wordpress/)
Local server configuration:
Alias / os/ "/ Users/gaopeng/eclipse-workspace/wordpress/" AllowOverride All Order allow,deny Allow from All
3. Create a Mysql database for WordPress (English name, language utf8_general_ci)
Wp-config-sample.php file database configuration
/ * * 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',')
According to the information configuration of my computer, my configuration is as follows:
The user name and password are all the following information:
/ * * MySQL database username * / define ('DB_USER',' root'); / * * MySQL database password * / define ('DB_PASSWORD',' 1'); / * * MySQL hostname * / define ('DB_HOST',' 127.0.0.1'); / * * 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')
4. Install wordpress
Step 1: enter http://127.0.0.1/os/ in the browser address bar
Step 2: create profile opens wp-config-sample.php in a text editor, fills in the database information, and saves it as wp-config.php. Then click "let's go!" Push button
Step 3: fill in the information in the page you entered (the database name you just created is wdpress, the user name is root, and the password 1 is Database Host:127.0.0.1,Table Prefix:wp), and then click the submit button.
Step 4: click the "install" button. (Run the install)
5. Resolve FTP issues required for wordpress installation themes or plug-ins
In the wp-content directory, create a new tmp folder and set the permissions of the folder to 777
Modify: add the following code to wp-config.php:
Temporary directory for define ('WP_TEMP_DIR', ABSPATH.'wp-content/tmp'); / * WordPress. * / define ("FS_METHOD", "direct"); define ("FS_CHMOD_DIR", 0777); define ("FS_CHMOD_FILE", 0777)
Note: to add this code after defining ABSPATH, that is, after it:
If (! defined ('ABSPATH')) define (' ABSPATH', dirname (_ _ FILE__). '/')
6. Language switching (language pack download)
Add define ('WPLANG',' zh_CN') to the wp-confing.php file
In the wp-content directory, create a new languages folder and set the permissions of the folder to 777
Enter the site dashboard (dashboard) and upgrade when you see the update prompt. WordPress will automatically download and install the Chinese language pack from the official website.
7. Install the plug-in
Select the plug-in you want to use to install.
1.Wordpress File Upload (plug-in for uploading files from the page. )
2.Multisite Language Switcher (multi-site language switching: plug-ins that should be used when creating substations in different languages)
Failed to update plug-ins, themes, etc. (error: because we could not copy some files, the upgrade was not installed when the apache environment server was used. This is usually due to inconsistent file permissions. Only need to open the permissions of the corresponding file (777)
The above is all the contents of the article "how to configure the local environment of wordpress". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.