Build a PHP + MySQL platform on XP

Source: Internet
Author: User
Some time ago, I used Z-Blog to create a Blog about this young peak. I am bored and want to play with WordPress, so I built a PHP + MySQL platform on the xp OS on the local machine and tried WordPress. In fact, Baidu can find a lot of methods for setting up PHP under xp iis, and then look for MySQL configuration. After a long period of time, I had to check it one by one. I didn't see a complete explanation from building PHP to the final WordPress. I will summarize it so that you may not search for MySQL again.

Next we will start.

You need to know that WordPress runs in the PHP + MySQL environment, so our first step is to set up a runtime environment. Currently, most of the operating systems used by basin friends are XP SP2 systems, and the XP server is configured as IIS V5.1. Before preparation, download the PHP program. The official address is ghost /.

The first step is to configure PHP under IIS (the installation method of IIS is needless to say, remember to install Internet Information Service management units, public files, and World Wide Web Services ). You have to prepare PHP in advance. I used PHP5.2.5 to download it from its official website.

1. Decompress PHP 5.2 to the C root directory of the local disk.

2. In the PHP folder. copy ini-dist to the C: \ WINDOWS directory and change it to php. ini, copy php5ts. dll and libmysql. dll files to C: \ WINDOWS \ system32

3. To allow PHP to support MySQL and Gd libraries, You need to edit PHP. INI file, open the file in notepad, find "extension_dir", and then set extension_dir = ". /"change to extension_dir =" C: \ PHP \ Ext "; remove the semicolon before"; Extension = php_mysql.dll "and change it to extension = php_mysql.dll. Remove the semicolon before "; Extension = php_gd2.dll" and change it to extension = php_gd2.dll.

4. PHP installation is complete. However, by default, IIS does not support PHP and ASP is supported. Therefore, we also need to create a PHP ing like creating CGI. Next, configure IIS and right-click on the default website and select "properties ". Find the "home directory" tab and click "Configure" in the lower right corner. In the "add and edit application extension ing" window, click the Browse button to find c: \ PHP \ php5isapi. DLL file, extension input. PHP. In this way, the php5isapi will be automatically called during the parsing process. DLL explains the PHP language. You also need to select "Script Engine" and "check whether the file exists.

5. Return to the "home directory" tab in the default website Properties window and change the execution permission to "script and executable file" to run the PHP program.
Figure 8

From 6 to the "document" tab in the default website Properties window, add index. php or default. php to the default document list.

7. Create a TXT file with the following content.

<?
Echo phpinfo ();
?>

Save it as the index. php or default. php file and copy it to the website publishing directory.

8. view the index. php or default. php page file in IIS to see the real content. This shows that our PHP environment has been successfully set up.

TIPS: If index. if php cannot be properly displayed, we will go to the ISAPI filter tag in the default website attribute and add a filter named PHP. Select c: \ php \ php5isapi as the executable file. dll.

9 of course, after modifying the settings, we need to restart IIS or simply start the computer. After restarting, the PHP file will be displayed smoothly. To restart IIS, you can disable the "iis admin" service or right-click the default website and choose "Stop" and then "start ". Selected

The first step is to set up and configure PHP, and the second step is to set up and configure MySQL. (To build a PHP + MySQL platform (PHP) on XP)

Run WordPress on the local machine
With the popularity of Web2.0, various blog programs have emerged.

I remember that I liked writing and writing in the East and West for a long time (but now I am not that elegant, so I am very empty in my studies, and I am very real after work ). When I first had a computer, I only knew WPS of Qiu bojun. I gradually got to know Ms offie and FrontPage, at this time, I began to learn how to create a simple web page (just like hao123 at the beginning, I knew what to do and what to do). I wanted to link all the websites I knew. Alas, unfortunately, this idea was first achieved by Li xingping. Otherwise, I would have owned 11.9 million RMB and 40 thousand shares, and became a shareholder of Baidu, who lives in the overseas house and runs Xiao Ben, sorry !). While doing this, I want to write something on my own website. (alas, I had no idea what blog was about at the beginning. The originator of this blog is not me ), now, in the era of web, I will go with those things.

I wrote a blog on BSP for a while, some time ago, mm and I added QQ to search for "fairy tales" in the search engine and found me (my previous blog called "fairy tale snow"), ^_^, I wrote my article well. Well, it's probably a little girl who was cheated by my fairy tale. I still got a website by myself. I know a lot of blog programs now, in this way, I know WordPress, Z-blog, pjblog, bo-blog or something (now this station is a z-blog program, which is quite good ). WordPress is full of streets and I want to see how it works, so I want to try it.

You know that foreigners like non-mainstream things. OS uses Linux and website building platforms Use PHP, so WordPress is a PHP platform. Fortunately, I was patient. I sent googl and Baidu big check to check one side and finally matched my XP SP2 old machine with PHP + MySQL. Let's get started.

After entering http: // localhost/WordPress/, you are eager to get started.

Login interface (saving the account setting process)

It is a gorgeous interface. This is what I'm looking forward!

After login, the interface is also set to blue.

The powerful management system and convenient appearance and plug-in setting system in the WordPress background have to be overwhelmed by me. The Privacy Protection for search engine spider is implemented in the management project. The one-click switch between visual editing and code editing makes skin replacement easier to use, you can also use the drag and drop button to edit the sidebar. It seems that there are still many powerful functions. I will learn more later.

Anyway, WordPress is running on the local machine. Let's end with a good word. (* ^__ ^ *) Xi ......

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.