PHP 5.2 and IIS

January 30, 2007 - 00:35
PHP 5.2 and IIS
Posts: 1
Joined: 2007-01-30

Hi,
I'm running PHP 5.2.0, IIS 6.0, and eAccelerator 0.9.5 on Windows 2003 Server. My INI settings are as follows:

extension="eaccelerator.dll"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="C:\PHP\eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
accelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm"
eaccelerator.sessions="shm"
eaccelerator.content="shm"
eaccelerator.allowed_admin_path="C:\Inetpub\wwwroot\eaccelerator\control.php"

The extension does exist in stated directory, and I have created the cache dir and given it write permissions.

Upon starting IIS and loading a simple script, I get "The connection was reset" due to a "Bad Request". I've tried many different PHP scripts, as well as the control.php. Nothing works at all. I've also set eaccelerator.enable="0" to no avail. I have even commented out all lines other than the cache_dir and extension. The only thing that works is commenting out the extension line (effectively disabling the extension).

Other INI settings that may be of interest:
cgi.force_redirect = 0
fastcgi.impersonate = 1
cgi.rfc2616_headers = 0

Here is a sample of the log I am receiving from IIS:
2007-01-30 06:46:37 172.16.0.153 3321 172.16.1.1 80 HTTP/1.1 GET /test.php - 1 Connection_Abandoned_By_AppPool DefaultAppPool

Any suggestions as to what I may be doing wrong?

Many thanks!
--Dan



February 26, 2007 - 17:27
Posts: 15
Joined: 2006-05-23

Try this

extension_dir = "c:\php\ext\"

cgi.force_redirect = 0
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1

[eAaccelerator]
extension="eAccelerator095_i284_5.2.1.dll" ;
eaccelerator.shm_size="256"
eaccelerator.cache_dir="c:\tmp\eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.log_file = "c:\tmp\eaccelerator_log"
eaccelerator.name_space = ""
eaccelerator.check_mtime = "1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"; ( I have used 3600 = 1 hour)
eaccelerator.shm_prune_period="1800" ; ( testing 1800)
eaccelerator.shm_only="1" ;(testing 1 this seem noticeably faster?)
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"; (testing)
eaccelerator.allowed_admin_path = "D:\hosting\skzhosting.org\public_html\ea\"



February 24, 2007 - 16:17
Erik (not verified)
Posts: 195
Joined:

Hi Dancablam!

I'm experiencing the exact same error you had, and I was wondering if you were able to sort it out?

Regards,
Erik