Win Platform build WordPress environment
WordPress is an open source popular personal information publishing platform, written in PHP. Now there are many sites are built using WordPress. At the same time, WordPress also provides a large number of plug-ins, to help people build personalized website.
Install PHP
To install WordPress, you need to install PHP first. The installation of PHP can refer to this article. Or you can easily install PHP using the Web Platform Installer.
Install MySQL
WordPress needs MySQL as a database, to download the MySQL download page that more than 300 m of the offline installation package. Click Install when the download is complete. After the installation is complete.
Install WordPress
To the WordPress Chinese web can find the latest Chinese version of the WordPress package. This is a compressed package, after decompression will get a folder of WordPress. After you put the folder in the appropriate location, you can open IIS to configure WordPress. Choose a name for the site, the physical path is set to just the path of WordPress, and then assign a suitable IP address and port number, the installation of WordPress completed. In this time, you can open WordPress in the browser to view.
Common errors
Access rights issues
If there is a permission error when accessing WordPress, it means that IIS does not have access to the WordPress folder, you need to open the WordPress Properties dialog box, then click on the Security tab, click Edit, Open the Security dialog, and then click Add, Enter IUSR in the input box, then click Check Name, then click OK, add Iis_iusrs user for WordPress, and set the permissions to Full control. Set to Full control, in the future to update WordPress just need to simply click on the Web page.
External network access cannot read CSS and other files
When outside the network access, may appear the CSS, JS file load failure situation, causes the page to display is not normal. Using the F12 Developer tool, you will find that the request path of CSS, JS and other files is localhost, which causes these files to fail to read.
This time need to open the/wp-admin/options-general.php page in the server, open will find that the address is set to localhost, here to change the localhost to your server corresponding IP address or domain name, you can 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); }); });
The above describes the win platform to build the WordPress environment, including the aspects of the content, I hope that the PHP tutorial interested friends helpful.