search
HomeBackend DevelopmentPHP ProblemHow to install php environment in windows2003

How to install PHP environment in windows2003: first install Fastcgi; then copy the downloaded "php-5.2.17-Win32-VC6-x86.zip" to the D drive; then configure PHP extension support; finally configure it iis is enough.

How to install php environment in windows2003

Recommended: "PHP Video Tutorial"

Environment setup: php-5.2.17 iis6 fcgisetup_1 .5_rtw_x64 ISAPI_Rewrite3_0112_x64

Installation package used: ISAPI_Rewrite3_0112_x64.zip Password: orct, php-5.2.17-Win32-VC6-x86.zip Password: op83, fcgisetup_1.5_rtw_x64.msi Password: 6900

Installation steps:

Fastcgi installation

  1. Click on the installation file fcgisetup_1.5_rtw_x64.msi and go to the next step. After the installation is completed, there are 5 more files fcgiconfig.js, fcgiext.dll, fcgiext.ini, fcgilicense.rtf, fcgireadme.htm

  2. # in the C:\WINDOWS\system32\inetsrv\ directory. ##At this time, there is an additional FastCGI Handler in the "WEB Service Extension" of IIS6



Php-5.2.17 installation, no installation required Package

  1. ##Take the

    D disk as an example, put the downloaded "php-5.2.17-Win32 -VC6-x86.zip”Copy to the D disk, then right-click to decompress php-5.2.0-win32 (assuming it is installed in this directory) directory;

  2. #FastCGIModifications in the installation directory(RegisterPHP to FastCGI)Open
    C:\WINDOWS\system32\inetsrv\fcgiext.ini file, Add the following three lines to the end of the file[Types](This line is originally in the file and should be at the end of the file, in
    [Types] Just add the following statements after them, all of them must be included otherwise an error will be reported. )
    (Note:
    php #php-cgi.exe in the installation directory

    php=PHP
    [PHP]
    ExePath=D:\ php-5.2.0-win32\php-cgi.ex

In D:/php

5.2.0-# Find the "php.ini-dist" file in the ##Win32 folder and make a copy of it to facilitate restoration in the event of an error in the future. Then rename the copied file to "php.ini";

用记事本打开“php.ini”文件,查找“extension_dir”,再将 extension_dir ="./" 改为 extension_dir ="D:/php5.2.0Win32/ext"(注:php的安装目录下的ext文件夹,这里应该用斜杠/而不是反斜杠)。如下图;

     接着配置php扩展支持,在php.ini文件中查找到以下行:

“
;extension=php_curl.dll
”
“;extension=php_mysql.dll”
;
“
;extension=php_ldap.dll
”
“;extension=php_mysqli.dll”
;
“
;extension=php_exif.dll
”
“;extension=php_gd2.dll”
;
“;extension=php_mbstring.dll”
“
;extension=php_sockets.dll
”
“
;extension=php_xmlrpc.dll
”

前面的分号去掉,就表示php支持这些扩展功能了;将以下配置设置为“display_errors= Off”,“log_errors= On”,“error_log= "D:\ php5.2.0Win32\kkeye_errors.log"”(指定位置);

  保存并关闭php.ini文件;再将其复制到C:/Windows目录下;

   D:/php5.2.0Win32文件夹下找到名为php5ts.dll,libmysql.dll的文件,并将其复制到C:/windows/System32文件夹中 (注:IIS处理PHP 5MYSQL需要该文件)

   php安装完毕。

Step 2: Configure iis

Open iis, Right-click the left mouse button"InternetInformation Service" below"网站", then select" Attribute", or a familiar "websiteattribute"## will pop up # Panel, switch to the "Home Directory" tab, click the "Configuration", a "Application Configuration"# will pop up ## box, click the "Add" button below, and finally click ## in the pop-up box #"Executable file"Locate "C:\WINDOWS\system32\inetsrv\fcgiext. dll, enter # in the text box of Extension ##“.php”(Note: Add a dot before the extension), click OK. As shown below;





#Fill in the executable fileC:\WINDOWS\system32\inetsrv \fcgiext.dll

Fill in the extension .php

. Action>

is limited to GET,HEAD,POST. The execution permissions in the home directory are as follows:

##

  1. Set the following image in the document:

  2. Right click On the left "InternetInformation Service" below"webService Extension", click "Add a new webService extension, then add a new webextensionEnter: PHP, and then point the executable file to the path where php5isapi.dll is located in the root directory of the php folder , and set the status to "Allow", and finally click "OK (Missing this step leads to accessing the phpFile Times403 page inaccessibility). As shown below;

  3. # After Iis configuration is completed, restart iis.

Test php configuration

Create a new site under iis, and then create a new "test. php" file, write the sentence "echophpinfo();" into it, save and close. Then access it with a browser. If you can open this web page and the following screen appears, it means the configuration is successful.

Upload website code

##ISAPI_Rewrite, routing rewrite extension installation

    Unzip ISAPI_Rewrite3_0112_x64.zip and get the 20140729131718_34157 folder (containing cracked files and installation methods), ISAPI_Rewrite3_0112_x64.msi installation file;
  1. Double-click ISAPI_Rewrite3_0112_x64.msi Perform the installation, use the default selections, and click Next until it is complete (the installation process will automatically restart IIS).
  2. After completion, copy the ISAPI_Rewrite.dll and ISAPI_RewriteSnapin.dll files under the 20140729131718_34157 file to the ISAPI_Rewrite installation directory, overwriting the original files (if the prompt file is occupied, you can first Delete the original file and copy it over).
  3. Find the httpd.conf file in the installation directory. Enter the following:
  4. RegistrationName= coldstar

    RegistrationCode= 2EAD-35GH-66NN-ZYBA

  5. Restart IIS and the installation is complete.
  6. Configuration, after the installation is completed, you will be able to see the label of the ISAPI_Rewrite component in the label of each site property,
  7. 64

    I am on the test server I didn't see this during installation. After the installation is complete, you can use it without configuring anything:

  8. Restart iis.
  9. ISAPI_Rewrite

    The 64 bit system does not require ISAPIFilter Add dll

After all installation is completed, open the website to test the following functions.

The above is the detailed content of How to install php environment in windows2003. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
php怎么把负数转为正整数php怎么把负数转为正整数Apr 19, 2022 pm 08:59 PM

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

php怎么实现几秒后执行一个函数php怎么实现几秒后执行一个函数Apr 24, 2022 pm 01:12 PM

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php怎么除以100保留两位小数php怎么除以100保留两位小数Apr 22, 2022 pm 06:23 PM

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

php怎么根据年月日判断是一年的第几天php怎么根据年月日判断是一年的第几天Apr 22, 2022 pm 05:02 PM

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php字符串有没有下标php字符串有没有下标Apr 24, 2022 am 11:49 AM

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

php怎么读取字符串后几个字符php怎么读取字符串后几个字符Apr 22, 2022 pm 08:31 PM

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。

php怎么替换nbsp空格符php怎么替换nbsp空格符Apr 24, 2022 pm 02:55 PM

方法:1、用“str_replace(" ","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\&nbsp\;||\xc2\xa0)/","其他字符",$str)”语句。

php怎么判断有没有小数点php怎么判断有没有小数点Apr 20, 2022 pm 08:12 PM

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool