Apache
准备工作:
在http://www.apache.org下载apache_2.0.44-win32-x86-no_ssl.exe
在http://www.php.net下载php-4.3.0-Win32.zip
安装步骤:
1、运行apache_2.0.44-win32-x86-no_ssl.exe 进行默认安装到结束
2、解压php-4.3.0-Win32.zip到c:\
3、拷贝文件c:\php-4.3.0-Win32\php.ini-dist到Windows目录下,并改名为php.ini,也把c:\php-4.0.3-Win32\php4ts.dll拷贝到windows\system目录下(For Win98)或拷贝到winnt\system32目录下(For NT4/NT5)。
4、用记事本编辑文件C:\Program Files\Apache Group\Apache2\conf\httpd.conf
加入两行:
LoadModule php4_module c:/php-4.3.0-Win32/sapi/php4apache2.dll
AddType application/x-httpd-php .php
5、重新启动Apache,整个安装过程结束,就这么简单,其实就是在httpd.conf中加上php模块。。。
测试:
1、用记事本写个test.php文件,保存到C:\Program Files\Apache Group\Apache2\htdocs下,内容如下:
2、打开浏览器运行:http://localhost/test.php
嘿嘿,够简单了吧
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