All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
技术畅谈:开发大型PHP项目的技巧与方法_php资料_编程技术
ASP.NET,2.0,Membership原理及应用_.net资料_编程技术
PHP日期和时间函数使用技巧实例_[PHP教程]
小例子:ASP.NET定制简单的错误处理页面_[Asp.Net教程]
delphi模拟按下键盘上的某个键
Sqlserver怎样将XML文件导入数据库_[SQL,Server教程]
利用GridView显示主细表并添加打开、关闭功能_[Asp.Net教程]
ASP.NET2.0应用的全球化与本地化之本地化_.net资料_编程技术
使用.NET多线程技术显示实时股票信息_[Asp.Net教程]
升级PHP5的理由:PHP4和PHP5性能对比_php资料_编程技术
Reading number is top 10 pictures
China's ambassador to Libya embassy was shock, and the glass is broken in
The sixties of the last century, China is such a kill pig
男人们都在想什么
美丽的桂林风光2
世界各国15岁的MM有什么不同
Startling Russian girl blind date scene3
西班牙山村小景2
汪峰的梦想
美女浴室写真2
2012 national geographic daily picture3
Download software ranking
Prostitutes diary
Sora aoi 120 minutes
The cock of the Grosvenor LTD handsome
C#与.NET技术平台实战演练
打鸟视频
C#编程思想
Take off clothes to survival
C#COM编程指南
豪门浪荡史
双旗镇刀客B
aaa published in(发表于) 2013/12/27 20:01:52 Edit(编辑)
使用IIS或Apache做PHP的服务器_php资料_编程技术

使用IIS或Apache做PHP的服务器_php资料_编程技术

使用IIS或Apache做PHP的服务器_php资料_编程技术-你的首页-uuhomepage.com

  Aphache做服务器:

安装 Apache 并进行配置使其支持 Php

  将 Apache 安装在 d:\website\apache 目录中。Apache 安装过程需要输入网站域名,本地调试使用localhost即可,安装过程很简单,全图形化界面,不再赘述。

  PHP解压缩到 d:\website\php 目录中
  然后找到 d:\website\php\php.ini-dist 文件,将其重命名为 php.ini,并复制到 c:\windows 目录里。
再将 d:\website\php\ 目录中的 php5ts.dll 和 libMySQL.dll 两个文件,一起复制到 c:\windows\system 或 c:\windows\system32 目录中。

  编辑 d:\apache\apache2\conf\httpd.conf 文件:
首先找到 DocumentRoot 一行,将其后的路径修改为 web 服务的主目录,例如:DocumentRoot "D:/website/public_html";
然后找到 DirectoryIndex 一行,在行末加上 index.htm index.php,例如:DirectoryIndex index.html index.html.var index.htm index.php

  为 Apache 安装 Php: 编辑 d:\apache\conf\httpd.conf 文件:

  找到 #LoadModule ssl_module modules/mod_ssl.so 这行,在此行后增加一行:
  LoadModule php5_module d:/website/php/php5apache2.dll

  找到 AddType application/x-gzip .gz .tgz,在此行后增加三行:
  ScriptAlias /php/ "d:/website/php/"
  AddType application/x-httpd-php .php
  Action application/x-httpd-php "/php/php-cgi.exe"

d:/website/php/ 是指 php 5.03 的安装目录路径,请视具体情况更改。

  重新启动 Apache 服务。

  到这里,Apache + Php 环境基本已经配置完成,在 web 根目录(以上例即 d:\website\public_html\ 目录)中,用记事本创建一个 phpinfo.php 文件,其内容如下:

    echo phpinfo();
  ?>

  然后,在浏览器中打开 http://localhost/phpinfo.php ,如果看到 Php 配置输出信息,就说明配置正常。

IIS上运行PHP
1.
默认网站--属性--主目录--配置--添加
添加应用程序扩展名映射:
可执行文件:C:\php\php.exe %s %s
扩展名:.php
选定:脚本引擎、检查文件是否存在
2.
默认网站--属性--主目录--文档-添加
index.php


或者:
默认网站--属性--主目录--配置--添加
C:\php\php5isapi.dll
.PHP





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.