I just set up my blog site on my computer. Because a lot of information on the Internet is too old, there are still many problems encountered during the installation process. Now, I want to list the installation steps step by step and give some tips to my friends who want to create their own blog sites recently.
First, install a web server on your computer. I use windows, so I use IIS. Apache is also acceptable, but I have never been willing to install unnecessary things on my computer. If Windows comes with something that can complete the task, you can use it directly.
After the installation, your computer is the website. You can directly use http: // localhost/for access. However, it can only be accessed from its own computer. If you are an intranet user, you can use your intranet IP address to access your website. If you have a fixed IP address, you can use your IP address to access your website from the Internet.
However, if you do not have your own fixed IP address, you do not want to spend any money to buy a virtual server on the Internet. (One of the purposes of building a blog is not to put your own things on others' computers .) Dynamic domain names must be resolved. The peanut shells are used for this purpose.
Register an account (oray passport) at http://www.oray.cn ). When the registration is complete, oray will automatically generate a free second-level domain name based on your nickname. For example, my http://XXXX.gicp.net/
Then, download and install the peanut shell client from http://www.oray.cn/peanuthull/download.php.
Log on to the peanut shell and complete the dynamic dns registration. You can access your website using the second-level domain name provided by oray on the Internet.
The hardware problem is basically solved. Download the latest WordPress at http://wordpress.org. I use version 2.8. On its Docs page, we have detailed the use environment and installation steps of WordPress, which are quite detailed. I have learned how to install PHP and MySQL ~~~
Refer to a illustrated article on webbeta.org, which describes how to install PHP
And MySQL. The php-5.2.10 and MySQL-5.1.35 were downloaded.
There is no problem with installing mysql. There are a lot of things to configure, but it is okay to use the default configuration. After the installation is complete, create a user and a database for Wordpress. The work is complete.
However, when installing PHP, we found that the latest PHP version has no options in the installation steps. In this article, you must select the iis isapi module. However, my PHP installation items are as follows, and I do not want.
After searching for half a day, I felt that the most feasible thing was IIS FastCGI. I checked it online. This is the best way Microsoft supports PHP and is used to replace the old ISAPI. However, you must download the IIS patch before using it.
After installing the patch, run the PHP installation again. In addition to the installation path, you do not need to enter anything. Note the following when selecting components. In the Extensions component, select at least MySQL, OpenSSL, and sockets. Of course, there is no problem with full installation.
If the installation is not complete, do not worry about using the PHP file for testing. Open a cmd window. Enter "PHP-V" to see if something can come out. After I installed it, the test failed. The page only showed an error and only gave an error code. I checked the error code online, after half a day, no solution was found. Finally, we found that one DLL is missing ~~~ I have not installed it completely ~~~~
After installation, decompress WordPress and create a virtual directory on IIS to point to this folder. Just give the website some names!
Visit your new site, and the subsequent steps are WordPress. Configure as required.
Several problems are found during the use.
1. fixed links can only be used by default. By default, iis5.1 does not support URL rewrite. Someone installed a patch on Google Code. But I did not try it. Because I can also use other methods, that is, customize them. Define it as this is OK.
/Index. php? Year = % year % & month = % monthnum % & name = % postname %
Although it is not very good, it is also better than the default ID.
2. Do not setArticleDelete it empty, otherwise your blog will be inaccessible.
3. Many plug-ins need to be installed. For example, WP-postviews and wordpress.com stats. The WP-postviews file must be changed to the PHP file ~~~~ What's worse, the wordpress.com stats plug-in needs an API key, and the request API key needs to go over the wall. In the future, the stats of the blog will be shown on the wall ~~~~~