Novice Configuration PHP Debugging Environment (IIS+PHP+MYSQL) _php Basics

Source: Internet
Author: User
Tags configuration php perl interpreter phpinfo sapi

Purpose: Configure the environment to run PHP (Iis+php+mysql+cf+perl) support php+cgi+asp+jsp, etc.

Operating system: Windows2000 Advance Server (SP3) Simplified Chinese version

Related software required:

One: Php-4.3.0-win32.zip, to the corresponding site to download, I upload files inconvenient to the same below.

II: ACTIVEPERL-5.6.1.635-MSWIN32-X86.MSI, note that the installation file must be downloaded, that is, the. msi, do not put the original code, I will not get the original code, add this support CGI, if you do not want to support CGI can not download this installation

Three: Mysql-4.0.7-gamma-win.zip

Four: MM ColdFusion MX (There is no this does not matter pull, I also pretend to play, mainly support Php+mysql)

Everything is on my machine directory as the standard, assuming you L:\WEB for your site root directory

Unzip the php-4.3.0-win32.zip to the L:\php directory

Copy php directory under Php4ts.dll to Winnt\System32 directory

Copy the php.ini.dist to the Winnt directory, and remove the extension. dist, get php.ini file, change two parameters with Notepad:

1. Search Extension_dir, point it to your PHP extensions directory, such as I am L:\PHP\extensions, I modify this:

Extension_dir = L:\PHP\extensions These can be modified when you want to support some extensions extension

Save PHP.ini

Install MySQL:

Open Mysql-4.0.7-gamma-win.zip Compression Pack

Double-click setup.exe to run the program, during the installation process to select the MySQL installation directory (of course, you want the default directory can also), such as I installed in the L:\mysql directory to run L:\mysql\bin\mysqld-nt.exe, In fact, the general installation after the system is automatically started service, if not assured to the "service" to see if MySQL started

Install m$ Office, do not know whether to install this thing to support ASP I do not know, anyway, I installed the system after the installation of all Office, oh, it is estimated that not installed also support ASP, (if you do not want it to support ASP can not go to the tube it)

To install the Perl interpreter:

Run Activeperl-5.6.1.635-mswin32-x86.msi, the installation process to select the L:\perl directory, of course you have to default also line.

MM ColdFusion MX, I was loaded into the L:\ColdFusionMX directory

Configure the server, hey, write to this side have to open Photoshop map, said not to say

Click Start-"program-" Administrative Tools-Internet Services Manager


Click Default Web site, and then right-click it, select Properties, and open the dialog box





Click Home Directory, and do the following: In the local path, select the folder on your machine that you want to use as the root of the site, for example, mine is L:\WEB, as shown below: Then click "Configure" at the bottom right and pop up a new dialog box.


In the New dialog box, select Add


In the executable file browse select L:\php\sapi\php4isapi.dll, note in the Browse dialog box file type to choose *.dll, otherwise do not see the L:\php\sapi\ directory of the. dll file, when selected, enter in the extension. PHP, as shown in the following figure:


Click OK


As the above method adds L:\perl\bin\perlis.dll, set the extension to. CGI (this is my own research, I did not read any data when I installed support CGI, like PHP dots, hehe), the following figure set, click OK


The last step is to set the default file, which is index.php pull or something, the following figure, set up after all the way to close the Internet service Manager


It's like this. Oh, test the PHP pull, the other people write their own program test, build a info.php file, saved in your Web root directory, open in Notepad, copy the following content to save:


<?php
Phpinfo ();
?>

If all goes well, meet the following pages:


Finally, I wish you a happy PHP, hehe

In addition, after the installation of MM CFMX, the site will automatically stop, please start it, there is one to be modified:

Find L:\CFusionMX\db\slserver52\ Admin directory Setcp.bat, in the current directory to create its shortcuts, remember that the file name is also Setcp.bat Oh, and then right-click on the shortcut, select Properties, after the target plus space and uppercase OS, then click OK,

such as: L:\CFusionMX\db\slserver52\admin\setcp.bat OS

This is to solve the garbled problem, my friend told me, after the modification of the computer will be OK.

PostScript: Many people say that debugging is unsuccessful, showing information similar to these:

Warning:unknown (D:\www\phpinfo.php): Failed to create stream:no such file or directory into Unknown on line 0

Warning:unknown (): Failed opening ' D:\www\phpinfo.php ' for inclusion (include_path= '.; C:\php4\pear ') in Unknown on line 0

That's your info.php. This file is wrong, the extension is not real. PHP, but. txt file, only display extension to remove. txt

Related Article

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.