search
HomeBackend DevelopmentPHP Tutorial php5.3配合IIS使用FastCGI出现的有关问题,百度google均无解 T_T 大能

php5.3配合IIS使用FastCGI出现的问题,百度google均无解 T_T 求助大能
windows2003+iis6+php5.3.8+fastcgi1.5rtw
(配置过N次,也积累了许多经验,但是被我弟玩了几天后...)
配置完成后,运行IIS提示如下:

-----
FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

  The FastCGI process exited unexpectedly
  Error Number: -2147467259 (0x80004005).
  Error Description: 未指定的错误

HTTP Error 500 - Server Error.
Internet Information Services (IIS)
-----

iis的其他功能均正常,asp 、asp.net都正常使用

我查过网络上的一些资料,说这个错误代码有两个解决方法:
1.
如果是内存溢出倒是可以修改,去php.ini下找到memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
把128改成512的就好了 

2.
php.ini中的session.save_handler配置错误导致FastCGI Error  
最近在搞论坛使用QQ登录的功能,其中一个小动作是我把服务器的php.ini文件里的session.save_handler=files改为session.save_handler=user了!之后,我发现网站那些有关sesion操作的页面都打不开了

但实际修改后问题依旧。

php5.3.8降低成5.3.6问题依旧;IIS卸载后重新安装配置依旧;fastcgi是www.iis.net下载,1.5的rtw版本

我自己还写了篇配置文章,自感良好 T_T惭愧!
传送门:http://blog.csdn.net/tgh1981/article/details/6056624

我测试使用Nginx+fastcgi+php5.3.8正常!!!!!

iis应用程序池删除、新建、无cpu监控什么的;iis的Web服务扩展启用了fastcgi handler,甚至cgi也启用,问题依旧

请别说重新安装系统来解决,我就像找到问题所在并解决它!

请大能们helpme!
tks!



------解决方案--------------------
HTTP Error 500 - Server Error.

根据这个信息, 可以推断程序脚本应该有问题,可以开启error_reporint(E_ALL)试试。
------解决方案--------------------
这几天遇到相同的问题。

不过我是在服务器上更换PHP高版本时出现的这些错误。

估计是php.ini中配置不当引起的。

我的解决办法是:
  
弄到相同PHP版本下的php.ini,同样服务器为IIS,以fastcgi方式安装。

实在不行找个一键安装装完后看看php.ini,和自己的比较,研究下它是如何配置的。


------解决方案--------------------
不行就别用IIS,改用nginx得了
------解决方案--------------------
cgi.force_redirect = 1
fastcgi.impersonate = 1

------解决方案--------------------
和你的问题一模一样 看我的解决方法你能用不

关于fastcGI方式运行php
今天安装后一直报错 具体如下
FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

The FastCGI process exited unexpectedly
Error Number: -2147467259 (0x80004005).
Error Description: 未指定的错误

HTTP Error 500 - Server Error.
Internet Information Services (IIS)

各种方式都试过了没用

最终报着绝望的心情 重新安装fastcGI 通过web平台安装方式 要求有.NET 2.0支持 由于是新装的操作系统我直接装的.NET 4.0 下载安装.NET 2.0后通过平台方式安装fastcGI1.5 重启IIS 奇迹出现了5555555555555 居然在也不报错 UC头像也显示了。。。
.NET 4.0 居然不支持fastcGI 造孽的微软啊

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
What is the difference between absolute and idle session timeouts?What is the difference between absolute and idle session timeouts?May 03, 2025 am 12:21 AM

Absolute session timeout starts at the time of session creation, while an idle session timeout starts at the time of user's no operation. Absolute session timeout is suitable for scenarios where strict control of the session life cycle is required, such as financial applications; idle session timeout is suitable for applications that want users to keep their session active for a long time, such as social media.

What steps would you take if sessions aren't working on your server?What steps would you take if sessions aren't working on your server?May 03, 2025 am 12:19 AM

The server session failure can be solved through the following steps: 1. Check the server configuration to ensure that the session is set correctly. 2. Verify client cookies, confirm that the browser supports it and send it correctly. 3. Check session storage services, such as Redis, to ensure that they are running normally. 4. Review the application code to ensure the correct session logic. Through these steps, conversation problems can be effectively diagnosed and repaired and user experience can be improved.

What is the significance of the session_start() function?What is the significance of the session_start() function?May 03, 2025 am 12:18 AM

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

What is the importance of setting the httponly flag for session cookies?What is the importance of setting the httponly flag for session cookies?May 03, 2025 am 12:10 AM

Setting the httponly flag is crucial for session cookies because it can effectively prevent XSS attacks and protect user session information. Specifically, 1) the httponly flag prevents JavaScript from accessing cookies, 2) the flag can be set through setcookies and make_response in PHP and Flask, 3) Although it cannot be prevented from all attacks, it should be part of the overall security policy.

What problem do PHP sessions solve in web development?What problem do PHP sessions solve in web development?May 03, 2025 am 12:02 AM

PHPsessionssolvetheproblemofmaintainingstateacrossmultipleHTTPrequestsbystoringdataontheserverandassociatingitwithauniquesessionID.1)Theystoredataserver-side,typicallyinfilesordatabases,anduseasessionIDstoredinacookietoretrievedata.2)Sessionsenhances

What data can be stored in a PHP session?What data can be stored in a PHP session?May 02, 2025 am 12:17 AM

PHPsessionscanstorestrings,numbers,arrays,andobjects.1.Strings:textdatalikeusernames.2.Numbers:integersorfloatsforcounters.3.Arrays:listslikeshoppingcarts.4.Objects:complexstructuresthatareserialized.

How do you start a PHP session?How do you start a PHP session?May 02, 2025 am 12:16 AM

TostartaPHPsession,usesession_start()atthescript'sbeginning.1)Placeitbeforeanyoutputtosetthesessioncookie.2)Usesessionsforuserdatalikeloginstatusorshoppingcarts.3)RegeneratesessionIDstopreventfixationattacks.4)Considerusingadatabaseforsessionstoragei

What is session regeneration, and how does it improve security?What is session regeneration, and how does it improve security?May 02, 2025 am 12:15 AM

Session regeneration refers to generating a new session ID and invalidating the old ID when the user performs sensitive operations in case of session fixed attacks. The implementation steps include: 1. Detect sensitive operations, 2. Generate new session ID, 3. Destroy old session ID, 4. Update user-side session information.

See all articles

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

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

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.

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

EditPlus Chinese cracked version

EditPlus Chinese cracked version

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

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.