Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by A Galadari -
Number of replies: 5

We have implemented moodle 1.7 on Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003.  We have about 150 users connected concurrentaly.  The systems hangs once we get a a large number of users connected.  We have to restart the server a number of times everyday.  Can anyone help?

I have included the httpconf and error.log files just incase someone can spot a problem with my setup.

The 2003 server is running on Interl Xeon 3.4Ghz and 3.5Gb RAM. 

Any modifications that I have to do in order to avoid the constant disturbance to the system?

===========httconf ============

Timeout 180

KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 15

<IfModule mpm_winnt.c>

 

ThreadsPerChild 500


MaxRequestsPerChild  500
</IfModule>


Listen 80

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so

LoadModule autoindex_module modules/mod_autoindex.so

LoadModule cgi_module modules/mod_cgi.so

LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so

LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so

LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so

LoadModule negotiation_module modules/mod_negotiation.so

LoadModule setenvif_module modules/mod_setenvif.so

LoadModule userdir_module modules/mod_userdir.so

LoadModule php5_module php/php5apache2.dll


ServerAdmin admin@localhost.com

ServerName localhost:80


UseCanonicalName Off


DocumentRoot "D:/www"


<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>


<Directory "D:/Apache2/htdocs">


    Options Indexes FollowSymLinks


    AllowOverride None

    Order allow,deny
    Allow from all

</Directory>


UserDir "My Documents/My Website"

DirectoryIndex index.html index.php main.php


AccessFileName .htaccess

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>


TypesConfig conf/mime.types


DefaultType text/plain


<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>


HostnameLookups Off

 

 


ErrorLog logs/error.log


LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access.log common

 


ServerTokens Full

ServerSignature On


Alias /icons/ "D:/Apache2/icons/"

<Directory "D:/Apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

 

AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "D:/Apache2/manual$1"

<Directory "D:/Apache2/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    <Files *.html>
        SetHandler type-map
    </Files>

    SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
    RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>


ScriptAlias /cgi-bin/ "D:/Apache2/cgi-bin/"

<Directory "D:/Apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

 

Redirect permanent http://localhost/moodle http://dubal90/moodle


IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


DefaultIcon /icons/unknown.gif

 
ReadmeName README.html
HeaderName HEADER.html


IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback

AddCharset ISO-8859-1  .iso8859-1 .latin1
AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3 .latin3
AddCharset ISO-8859-4  .iso8859-4 .latin4
AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5

AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

AddCharset GB2312      .gb2312 .gb
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5        .big5 .b5
AddCharset EUC-TW      .euc-tw
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

# for PHP
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler type-map var

 

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

<IfModule mod_ssl.c>
    Include conf/ssl.conf
</IfModule>

PHPIniDir "C:/windows/"

=================end of httpconf========

=================start of error.log========

[Sun Apr 08 14:04:07 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Apr 08 14:04:07 2007] [notice] Apache/2.0.59 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Apr 08 14:04:07 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sun Apr 08 14:04:07 2007] [notice] Parent: Created child process 2284
[Sun Apr 08 14:04:07 2007] [notice] Child 2284: Child process is running
[Sun Apr 08 14:04:07 2007] [notice] Child 2284: Acquired the start mutex.
[Sun Apr 08 14:04:07 2007] [notice] Child 2284: Starting 200 worker threads.
[Sun Apr 08 14:07:04 2007] [error] [client 10.40.30.26] [client 10.40.30.26]  http://dubal90/moodle  Failed Login:  dub07674  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:07:58 2007] [error] [client 10.40.30.26] [client 10.40.30.26]  http://dubal90/moodle  Failed Login:  dub07674  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:08:01 2007] [error] [client 10.40.30.26] [client 10.40.30.26]  http://dubal90/moodle  Failed Login:  dub07674  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:10:05 2007] [error] [client 10.40.34.61] [client 10.40.34.61]  http://dubal90/moodle  Failed Login:  dub02229  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:10:19 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Apr 08 14:10:19 2007] [notice] Apache/2.0.59 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Apr 08 14:10:19 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sun Apr 08 14:10:19 2007] [notice] Parent: Created child process 5164
[Sun Apr 08 14:10:19 2007] [notice] Child 5164: Child process is running
[Sun Apr 08 14:10:19 2007] [notice] Child 5164: Acquired the start mutex.
[Sun Apr 08 14:10:19 2007] [notice] Child 5164: Starting 200 worker threads.
[Sun Apr 08 14:10:21 2007] [error] [client 10.40.34.61] [client 10.40.34.61]  http://dubal90/moodle  Failed Login:  dub02229  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:10:23 2007] [error] [client 10.40.34.58] [client 10.40.34.58]  http://dubal90/moodle  Failed Login:  dub06697  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:10:34 2007] [error] [client 10.40.34.61] [client 10.40.34.61]  http://dubal90/moodle  Failed Login:  dub02229  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:10:40 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Apr 08 14:10:40 2007] [notice] Apache/2.0.59 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Apr 08 14:10:40 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sun Apr 08 14:10:40 2007] [notice] Parent: Created child process 812
[Sun Apr 08 14:10:40 2007] [notice] Child 812: Child process is running
[Sun Apr 08 14:10:40 2007] [notice] Child 812: Acquired the start mutex.
[Sun Apr 08 14:10:40 2007] [notice] Child 812: Starting 200 worker threads.
[Sun Apr 08 14:38:46 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Apr 08 14:38:46 2007] [notice] Child 812: Exit event signaled. Child process is ending.
[Sun Apr 08 14:38:47 2007] [notice] Child 812: Released the start mutex
[Sun Apr 08 14:38:48 2007] [notice] Child 812: Waiting for 200 worker threads to exit.
[Sun Apr 08 14:39:16 2007] [notice] Parent: Forcing termination of child process 268
[Sun Apr 08 14:39:18 2007] [notice] Apache/2.0.59 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Apr 08 14:39:18 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sun Apr 08 14:39:18 2007] [notice] Parent: Created child process 4816
[Sun Apr 08 14:39:18 2007] [notice] Child 4816: Child process is running
[Sun Apr 08 14:39:18 2007] [notice] Child 4816: Acquired the start mutex.
[Sun Apr 08 14:39:18 2007] [notice] Child 4816: Starting 200 worker threads.
[Sun Apr 08 14:39:48 2007] [error] [client 10.40.36.32] [client 10.40.36.32]  http://dubal90/moodle  Failed Login:    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:40:03 2007] [error] [client 10.40.34.47] [client 10.40.34.47]  http://dubal90/moodle  Failed Login:  dub07757  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:40:15 2007] [error] [client 10.40.36.34] [client 10.40.36.34]  http://dubal90/moodle  Failed Login:  dub07002  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:40:26 2007] [error] [client 10.40.36.34] [client 10.40.36.34]  http://dubal90/moodle  Failed Login:  dub07002  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1), referer: http://dubal90/moodle/login/index.php
[Sun Apr 08 14:40:33 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Apr 08 14:40:33 2007] [notice] Apache/2.0.59 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Apr 08 14:40:33 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sun Apr 08 14:40:33 2007] [notice] Parent: Created child process 4264
[Sun Apr 08 14:40:33 2007] [notice] Child 4264: Child process is running
[Sun Apr 08 14:40:33 2007] [notice] Child 4264: Acquired the start mutex.


Average of ratings: -
In reply to A Galadari

Re: Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by Ken Wilson -

One variable which jumps out are the KeepAlive settings. Reduce your KeepAliveTimeout to 2 and restart apache - this should free up connections. Also, take a look at http://docs.moodle.org/en/Performance#Apache_performance, which contains some hints - be careful as some of these are Linux-based so test out first.

Can you please *attach* the output of your phpinfo - it may help with those "child process exited with status 3221225477" errors.

Thanks

Ken

In reply to Ken Wilson

Re: Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by A Galadari -

I have tried changing the timout to 2 but it acted the same way.  I am attaching phpinfo for further help.  Thank you for your help/support.

PHP Version 5.1.6


System Windows NT DUBAL90 5.2 build 3790
Build Date Aug 23 2006 16:31:18
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


PHP Credits

Configuration

PHP Core

Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root d:\www d:\www
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log syslog syslog
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir d:\apache2\php\ext d:\apache2\php\ext
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .;C:\php5\pear .;C:\php5\pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler

Apache Version Apache/2.0.59 (Win32) PHP/5.1.6
Apache API Version 20020903
Server Administrator admin@localhost.com
Hostname:Port localhost:80
Max Requests Per Child: 500 - Keep Alive: on - Max Per Connection: 500
Timeouts Connection: 180 - Keep-Alive: 2
Virtual Server No
Server Root D:/Apache2
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php5

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment

Variable Value
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
HTTP_ACCEPT_LANGUAGE en-us,en-gb;q=0.7,ar-ae;q=0.3
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
HTTP_HOST dubal90
HTTP_CONNECTION Keep-Alive
HTTP_COOKIE MOODLEID_=%25E7%25D9%251C%251C%25E6-%25E9%255D
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\apache2\php;C:\Program Files\MySQL\MySQL Server 5.0\bin
SystemRoot C:\WINDOWS
COMSPEC C:\WINDOWS\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
WINDIR C:\WINDOWS
SERVER_SIGNATURE <address>Apache/2.0.59 (Win32) PHP/5.1.6 Server at dubal90 Port 80</address>
SERVER_SOFTWARE Apache/2.0.59 (Win32) PHP/5.1.6
SERVER_NAME dubal90
SERVER_ADDR 10.6.4.150
SERVER_PORT 80
REMOTE_ADDR 10.40.18.22
DOCUMENT_ROOT D:/www
SERVER_ADMIN admin@localhost.com
SCRIPT_FILENAME D:/www/index.php
REMOTE_PORT 3110
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /
SCRIPT_NAME /index.php

HTTP Headers Information

HTTP Request Headers
HTTP Request GET / HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Accept-Language en-us,en-gb;q=0.7,ar-ae;q=0.3
Accept-Encoding gzip, deflate
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host dubal90
Connection Keep-Alive
Cookie MOODLEID_=%25E7%25D9%251C%251C%25E6-%25E9%255D
HTTP Response Headers
X-Powered-By PHP/5.1.6
Keep-Alive timeout=2, max=500
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

bcmath

BCMath support enabled

calendar

Calendar support enabled

com_dotnet

COM support enabled
DCOM support disabled
.Net support enabled

Directive Local Value Master Value
com.allow_dcom 0 0
com.autoregister_casesensitive 1 1
com.autoregister_typelib 0 0
com.autoregister_verbose 0 0
com.code_page no value no value
com.typelib_file no value no value

ctype

ctype functions enabled

curl

CURL support enabled
CURL Information libcurl/7.14.0 OpenSSL/0.9.8a zlib/1.2.3

date

date/time support enabled
Timezone Database Version 2006.1
Timezone Database internal
Default timezone Asia/Dubai

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.22
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

ftp

FTP support enabled

gd

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

hash

hash support enabled
Hashing Engines md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

libxml

libXML support active
libXML Version 2.6.22
libXML streams enabled

mysql

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.22

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

odbc

ODBC Support enabled
Active Persistent Links 0
Active Links 0
ODBC library Win32

Directive Local Value Master Value
odbc.allow_persistent On On
odbc.check_persistent On On
odbc.default_db no value no value
odbc.default_pw no value no value
odbc.default_user no value no value
odbc.defaultbinmode return as is return as is
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
odbc.max_links Unlimited Unlimited
odbc.max_persistent Unlimited Unlimited

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.6 06-Feb-2006

Reflection

Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33 2006/03/29 14:28:42 tony2001 Exp $

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path d:\www\tmp d:\www\tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

SimpleXML

Simplexml support enabled
Revision $Revision: 1.151.2.22 $
Schema support enabled

SPL

SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Internal Sendmail Support for Windows enabled

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

tokenizer

Tokenizer Support enabled

wddx

WDDX Support enabled
WDDX Session Serializer enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.6.22

xmlreader

XMLReader enabled

xmlwriter

XMLWriter enabled

zlib

ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules

Module Name

Environment

Variable Value
ALLUSERSPROFILE C:\Documents and Settings\All Users
ClusterLog C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME DUBAL90
ComSpec C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK NO
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\apache2\php;C:\Program Files\MySQL\MySQL Server 5.0\bin
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 15 Model 4 Stepping 10, GenuineIntel
PROCESSOR_LEVEL 15
PROCESSOR_REVISION 040a
ProgramFiles C:\Program Files
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERPROFILE C:\Documents and Settings\Default User
windir C:\WINDOWS
AP_PARENT_PID 1456

PHP Variables

Variable Value
_REQUEST["MOODLEID_"] %E7%D9%1C%1C%E6-%E9%5D
_COOKIE["MOODLEID_"] %E7%D9%1C%1C%E6-%E9%5D
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en-gb;q=0.7,ar-ae;q=0.3
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
_SERVER["HTTP_HOST"] dubal90
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] MOODLEID_=%25E7%25D9%251C%251C%25E6-%25E9%255D
_SERVER["PATH"] C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\apache2\php;C:\Program Files\MySQL\MySQL Server 5.0\bin
_SERVER["SystemRoot"] C:\WINDOWS
_SERVER["COMSPEC"] C:\WINDOWS\system32\cmd.exe
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["WINDIR"] C:\WINDOWS
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.59 (Win32) PHP/5.1.6 Server at dubal90 Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.0.59 (Win32) PHP/5.1.6
_SERVER["SERVER_NAME"] dubal90
_SERVER["SERVER_ADDR"] 10.6.4.150
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 10.40.18.22
_SERVER["DOCUMENT_ROOT"] D:/www
_SERVER["SERVER_ADMIN"] admin@localhost.com
_SERVER["SCRIPT_FILENAME"] D:/www/index.php
_SERVER["REMOTE_PORT"] 3110
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /
_SERVER["SCRIPT_NAME"] /index.php
_SERVER["PHP_SELF"] /index.php
_SERVER["REQUEST_TIME"] 1176178072
_SERVER["argv"]
Array
_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
_ENV["ClusterLog"] C:\WINDOWS\Cluster\cluster.log
_ENV["CommonProgramFiles"] C:\Program Files\Common Files
_ENV["COMPUTERNAME"] DUBAL90
_ENV["ComSpec"] C:\WINDOWS\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["NUMBER_OF_PROCESSORS"] 4
_ENV["OS"] Windows_NT
_ENV["Path"] C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\apache2\php;C:\Program Files\MySQL\MySQL Server 5.0\bin
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 4 Stepping 10, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 15
_ENV["PROCESSOR_REVISION"] 040a
_ENV["ProgramFiles"] C:\Program Files
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\WINDOWS
_ENV["TEMP"] C:\WINDOWS\TEMP
_ENV["TMP"] C:\WINDOWS\TEMP
_ENV["USERPROFILE"] C:\Documents and Settings\Default User
_ENV["windir"] C:\WINDOWS
_ENV["AP_PARENT_PID"] 1456

In reply to A Galadari

Re: Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

PHP versions higher than 5.1.2 are VERY buggy when running under IIS - it's possible some of these issues aren't just related to IIS but running under Windows - I'd try either downgrading to PHP 5.1.2 or Upgrading to the latest 5.2.x

good luck!

smile

Dan

In reply to A Galadari

Re: Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by chris dennison -

Hi,

I'm running a similar sized system, Moodle 1.7.1 Apache 2.2.2   PHP 5.1.4 MySQL 5.0.21

I have ThreadsPerChild = 100  - this may need to be higher in your case try 150

and MaxRequestsPerChild = 0

The last change to the system was to set these directives; prior to that change my system was running out of memory - with some kind of memory leakage problem.  There are two apache2 tasks visible in task manager, one of them just kept on growing...

Rgds Chris

In reply to chris dennison

Re: Windows server: Apache/2.0.59 (Win32) PHP/5.1.6 on Windows2003

by Mark Williams -

[quote]

Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache does with Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child each request is handled by a separate thread. So, "process"-management directives are different:

  • MaxRequestsPerChild - Like the Unix directive, this controls how many requests a process will serve before exiting. However, unlike Unix, a process serves all the requests at once, not just one, so if this is set, it is recommended that a very high number is used. The recommended default, MaxRequestsPerChild 0, does not cause the process to ever exit.
  • ThreadsPerChild - This directive is new, and tells the server how many threads it should use. This is the maximum number of connections the server can handle at once; be sure and set this number high enough for your site if you get a lot of hits. The recommended default is ThreadsPerChild 50.

[/quote]

if you have a lot of users connecting, you need to up ThreadsPerChild to  a workable number for your userbase, but if you change MaxRequestsPerChild you will begin to experiance problems. If windows and apache hit that magical number then your threads will begin to stall and the oldest threads will then start to exit, however this may take some time. 

Once the old threads exit you will get the queued threads starting up but by that time users will have hit refresh and started another process again and sending you into an endless loop until your users give up or you get a sudden drop in connections or apache crashes.

There is a fix for the endless looping problem on the apache site but unless your totally out of memory, you can just set MaxRequestsPerChild to 0 and let the threads exit naturally.

Changing cache settings can also effect your child process as unless you clear down your cached pages properly you can have open threads left hanging until the ttl of the cache is reached and they die off naturally.

Hope thats helpful.