Home >Backend Development >PHP Tutorial >安装与配置PHP,让apache和php一起工作_PHP

安装与配置PHP,让apache和php一起工作_PHP

WBOY
WBOYOriginal
2016-06-01 12:35:42926browse

Apache

安装与配置PHP
/software/php-3.0.14-win32.zip
安装于c:\php3
配置:把c:\php3\php3.ini-inst文件copy为php3.ini并修改
 设apache服务器的主目录 doc_root=C:\apache\htdocs
 extension_dir=c:\php3
 将php3.ini copy到c:\windows下

 

让apache和php一起工作
找到httpd.conf中改为
 
  AllowOverride None
  Options None
 

并在文件末尾加上几句:
 ScriptAlias /php3/ "c:/php3山/"
 AddType application\x-httpd-php3 .php3 .php .phtml
 Action application/x-httpd-php3 "/php3/php.exe"

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