New users configure the PHP debugging environment (IIS + PHP + MYSQL)

Source: Internet
Author: User
Tags file info perl interpreter sapi

Objective: to configure the environment for running PHP (IIS + PHP + MYSQL + CF + Perl) and support php + cgi + asp + jsp

Operating System: windows2000 advance server (sp3) Simplified Chinese version

Required software:

A: php-4.3.0-Win32.zip, download to the corresponding site, I upload files is not convenient, the following is the same.

2: ActivePerl-5.6.1.635-MSWin32-x86.msi, note, must download the installation file, that is to say. if you do not want to support cgi, you can skip the installation.

3: mysql-4.0.7-gamma-win.zip

4: MM ColdFusion MX (whether or not there is such a pull, I also pretend to play, mainly support PHP + MYSQL)

Everything is based on the sub-directory on my machine. Assume that L: \ WEB is your site root directory on your machine.

Decompress php-4.3.0-win32.zip to the L: \ php Directory.

Copy php4ts. dll in the php Directory to the winnt \ system32 directory.

Copy php. ini. dist to the winnt directory and remove the extension. dist to get the php. ini file. use NotePad to open and modify the two parameters:

1. Search for extension_dir and point it to your PHP extensions directory. For example, if I am L: \ PHP \ extensions, modify it as follows:

Extension_dir = L: \ PHP \ extensions. You can modify extension when you want to support some extension libraries.

Save php. ini

Install mysql:

Open the mysql-4.0.7-gamma-win.zip package

Double-click setup.exe to run the program. During the installation process, select the mysql installation directory (of course, you can use the default directory). For example, if I install mysql in the L: \ mysql directory, run L: \ mysql \ bin \ mysqld-nt.exe, in fact, after the general installation is completed, the system will automatically start the service, if you do not worry about the "service" to see whether mysql started

I don't know whether to install the M $ Office to support asp. I have installed all the office after installing the system. It is estimated that asp is supported even if the system is not installed, (If you don't want it to support asp, you can ignore it)

Install the perl interpreter:

Run the ActivePerl-5.6.1.635-MSWin32-x86.msi, select the L: \ perl directory during installation, of course, you should also by default.

Install ColdFusion MX of MM. I installed it in the L: \ ColdFusionMX directory.

Configuration server, hey, I have to open photoshop to figure it here. That's hard to say.

Click Start> program> Administrative Tools> Internet Service Manager.


Click "Default web site", right-click it, and select "properties" to open the dialog box.





Click "main directory" and make the following settings: In "local path", select the folder on your machine as the root directory of the site. For example, if my folder is L: \ WEB, for example: click "configuration" in the lower right corner to bring up a new dialog box.


Select "add" in the new dialog box"


In the executable file, select L: \ php \ sapi \ php4isapi. dll. In the Browse dialog box, select *. dll. Otherwise, the directory under L: \ php \ sapi \ will not be visible. dll file. enter it in the extension after selecting the file. php, for example:


Click OK


The preceding method adds L: \ perl \ bin \ perlis. dll, set the extension. cgi (this is my own research. I didn't see any information when installing cgi support, like php, like drawing a gourd like a sample). If you set it, click OK.


The last step is to set the default file, that is, index. php pulling or something. For example, after setting the file, close "Internet Service Manager"


It seems like this is okay. Test the php pull, others write their own programs for testing, and create an info. the php file is saved in your web root directory. Open it in notepad and copy the following content to save it:


<? Php
Phpinfo ();
?>

If everything goes well, we will see the following page:


Finally, I wish you a pleasant PHP experience.

In addition, after mm cfmx is installed, the site will automatically stop. Please start it. Another option to be modified is:

Find setcp under the directory L: \ CFusionMX \ db \ slserver52 \ admin. bat: Create a shortcut in the current directory. Remember that the file name is also setcp. bat, right-click the shortcut, select Properties, add spaces and uppercase OS to the target, and click OK,

For example, L: \ CFusionMX \ db \ slserver52 \ admin \ setcp. bat OS

This is to solve the garbled problem. My friend told me that it would be okay to restart the computer after modification.

Note: many people say that the debugging is not successful and the information similar to this is displayed:

Warning: Unknown (D: \ www \ phpinfo. php): failed to create stream: No such file or directory in Unknown on line 0

Warning: Unknown (): Failed opening 'd: \ www \ phpinfo. php' for future Sion (include_path = '.; c: \ php4 \ pear') in Unknown on line 0

The file info.php is incorrect. The extension name is incorrect. php, And the extension name is A. txt file. Only the extension name can be dropped. txt.

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.