: This article mainly introduces how to build the WordPress environment on the Win platform. if you are interested in the PHP Tutorial, refer to it. Build a WordPress environment on the Win platform
WordPress is an open-source and popular personal information publishing platform written in PHP. Currently, many websites are built using WordPress. At the same time, WordPress also provides a large number of plug-ins to help people build personalized websites.
Install PHP
To install WordPress, you must first install PHP. For installation of PHP, refer to my article. You can also use the Web Platform Installer to install PHP conveniently.
Install Mysql
WordPress needs Mysql as the database. download the offline installation package of over 300 MB from the mysql download page. After the download is complete, click install. After installation, you can.
Install WordPress
You can find the latest Chinese version of WordPress package on WordPress Chinese network. This is a compressed package. decompress the package and you will get a WordPress folder. After placing the folder in a proper location, you can enable IIS to configure WordPress. Select a name for the website, set the physical path to the WordPress path just now, and assign a suitable IP address and port number to complete WordPress installation. In this case, you can open WordPress in the browser to view it.
Common errors
Access permission problems
If a Permission error occurs when you access WordPress, IIS does not have the permission to access the WordPress folder. in this case, open the WordPress properties dialog box, click the Security tab, and click edit, open the security dialog box, click Add, enter IUSR in the input box, click Check name, click OK, add IIS_IUSRS user to WordPress, and set permissions to full control. After the configuration is set to full control, you only need to click a few clicks on the webpage to update WordPress in the future.
Files such as css cannot be read during Internet access.
When accessing the Internet, css and js files may fail to be loaded, leading to abnormal page display. When you use the F12 developer tool to view the files, you will find that the request path for css, js, and other files is localhost, leading to the failure of reading these files.
At this time, you need to open the/wp-admin/options-general.php page in the server, you will find that the address here is set to localhost, change localhost to the IP address or domain name of your server to solve the problem.
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes how to set up the WordPress environment on the Win platform, including some content, and hope to help those who are interested in the PHP Tutorial.