Posts tagged with PHP

转载: http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/configuring-the-fastcgi-extension-for-iis-60

Introduction

From its first version, Internet Information Services (IIS) has supported Common Gateway Interface (CGI), which is a standards-based protocol that allows information servers, such as IIS, to interface with external applications. FastCGI was introduced to address the scalability shortcomings of CGI.

This article describes the shortcomings of earlier versions of CGI and defines the need for the FastCGI extension for IIS 6.0. This article also describes the configuration settings for the FastCGI extension.

- 阅读剩余部分 -

相信很多PHP开发人员都碰到开发过程中需要共用多个php类库的问题,传统的做法是把这些类库放到项目中的独立文件夹,创建新项目就复制一份共用类库到此文件夹以做到代码重用,但这么做容易造成多个项目的共用类库版本不同步.而且每次复制也很麻烦,在团队多人开发或公司多团队配合时维护类库工作往往很繁琐,在java中这个问题是通过maven解决.maven中的依赖仓库设置可以让当前项目自动依赖其他项目类库代码.并且同步更新公用类库. php中现在有composer同样可以做到这点.

- 阅读剩余部分 -

  • 测试条件: I3 380M + 4G + Windows7 + iis7 + PHP5.4(fastcgi) + Zend2.3
  • 网站设置: 使用默认的模块和控制器,配置config和module缓存. 不连接任何服务和数据库.为避免带宽不足清空view
  • 测试软件: Jmeter 20并发用户.测试机和被测试机是不同的电脑,它们之间用100M5类线直连

- 阅读剩余部分 -

IIS配置php提供web服务. 短期访问正常,长时间高压力访问容易崩溃.
表现为IIS提示500错误,php-cgi.exe崩溃. 此时在php日志中看不到任何异常,但windows事件日志记录下了php-cgi.exe应用程序错误. 其原因和php内存管理有关.有以下改善方法

- 阅读剩余部分 -