search
Homephp教程php手册如何在WIN2K下安装PHP4.04_php基础

如何在WIN2K下安装PHP4.04--我认为比较好的方法

  
PHP4.04已经比4.0要庞大的多,解包后有9M多,DLL文件变成了五十几个,原来奥索的一篇文章《Windows 2000下安装PHP4及MySQL大揭密》,我也是看了这篇文章学习安装的,但目前情况发生了变化,已经由php4.0.1pl2变成了php4.04,其重量好象也增加了两倍,如果还是象原文所说的将所有的DLL文件复制到SYSTEM32下,未免太那个了,下面谈谈安装PHP4.04总结的经验。
1、我是将PHP4.0.4解压到d:\php4 ,然后将php.ini-dist复制到system32下,改名php.ini ,原文所说的要将extension=php_zlib.dll等前面的注释拿掉,在我看来,拿不拿无所谓。基本不要改动,如果你是新手想快点测试成功,那就这样,在以后需要什么再将注释拿掉也不迟。
2、没有必要将PHP.EXE复制到WINNT下面,也没有必要将EXTENSIONS下面的DLL复制到SYSTEM32下面,让它们在原地方呆着。
3、将d:\php4\dlls\ 目录下所有的DLL(14个)复制到SYSTEM32下面,是否必须是所有的,我也搞不太清,只是其中一个msvcrt.dll已经在SYSTEM32下,而且也不让你覆盖。
4、打开IIS5 ,右键点你的WEBSIT,选属性,选ISAPI筛选器,然后添加,筛选器名称填为PHP,可执行文件浏览选中到D:\php4\sapi\php4isapi.dll ,好,确定。 然后选主目录,点配置,应用程序配置中添加为,可执行文件:D:\php4\php.exe ,扩展名当然是 .php 。

好,用这个试试:
php_info()
?>
在这里需要说明的是,原来我偷懒没有把d:\php4\dlls 目录下的DLL复制到SYSTEM32下,拿掉 extension=php_ldap.dll前面的注释,结果说是找不到该DLL,在extension dir 中无论如何设置都不行,复制后就没有这个现象了。
另外,今天(2001-1-16)日,PHP斑竹凡草回答一个帖子是关于找不到php_mssql.dll的,凡草说要装客户端的MSSQL才可以将PHP.INI中的php_mssql.dll注释拿掉,否则会出现找不到DLL的现象,在我看来,用上面的方法可以解决,因为extensions本身已经带有该DLL 。


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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

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

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software