FastCGI Crash problem

Hi all,

I have a php program that can cause the server crash. After I configure the sun one web server SP6 from NSAPI to FastCGI, i do the following actions:

1. Run the abnormal php program and hold this session.

2. Open a new session, run another normal php program (The result is just loading, loading...)

3. Open a new session, only run a html file. (The result is normal)

4. Close the abormal php program session

5. Return to normal php program, refresh this page. (The result is normal this time)

I want to know why this happen and any ways to prevent abnormal php program affect other php sessions?

Thanks.

Thanks.

[682 byte] By [polyuitjerry] at [2007-11-26 10:55:10]
# 1

Hi, all

I have two Sun one Web Server. One is Sun One Web Server 6.1 SP1 (using NSAPI mode) and the another one is Sun One Web Server 6.1 SP6 (using FastCGI mode). Both are using same php.ini file.

But when i run phpinfo on two web servers, the result is different. (e.g Thread Safety)

I think the only difference is the running mode (NSAPI and FastCGI).

Anyone can explain why the php configuration is different? Thanks.

Thanks.

Message was edited by:

polyuitjerry

polyuitjerry at 2007-7-7 3:08:20 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
if u r using php extension that are not thread safe, then php with nsapi will cause the web server crash. this is true if u r using with apache2 as well. in this case, it is best if u FastCGI
chilideveloper at 2007-7-7 3:08:20 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

Thread Safety option is set during the configure step. For NSAPI, this is enabled by default.

The values listed below "Configuration PHP Core" refer to the php.ini settings and these will usually (local values may vary but master values will remain the same) be the same if the same php.ini file is used.

SeemaA at 2007-7-7 3:08:20 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

1. Run the abnormal php program (has a unlimit while loop) and hold this session.

2. Open a new session, run another normal php program (The result is just loading, loading...)

3. Open a new session, only run a html file. (The result is normal)

4. Close the abormal php program session

5. Return to normal php program, refresh this page. (The result is normal this time)

I want to know why this happen and any ways to prevent abnormal php program affect other php sessions?

Anyone can solve this problem?

polyuitjerry at 2007-7-7 3:08:21 > top of Java-index,Web & Directory Servers,Web Servers...