Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache restarting - Faulting module name: ntdll.dll LDAP |
|
Author |
|
hegele.o
Joined: 16 Jun 2020 Posts: 2 Location: WALLDUERN
|
Posted: Wed 17 Jun '20 14:36 Post subject: Apache restarting - Faulting module name: ntdll.dll LDAP |
|
|
I have a problem with my apache webserver.
every time i try to start an LDAP request, the webserver restarts
Windows Server2016
16GB RAM
so i checked on another server on the same VM Ware and get the same result
i added to httpd.conf the following code but helped nothing
Code: |
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule> |
Windows event
Code: |
Faulting application name: httpd.exe, version: 2.4.43.0, time stamp: 0x5e9f60a7
Faulting module name: ntdll.dll, version: 10.0.14393.1715, time stamp: 0x59b0d03e
Exception code: 0xc0000374
Fault offset: 0x00000000000f8363
Faulting process id: 0x18b0
Faulting application start time: 0x01d6449534f6a6bf
Faulting application path: G:\wld_tool\xampp\apache\bin\httpd.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 117b17d3-6f27-4544-a1c7-4bb764c8bafb
Faulting package full name:
Faulting package-relative application ID: |
apache error log
Code: |
[Wed Jun 17 13:04:58.641960 2020] [mpm_winnt:notice] [pid 4580:tid 700] AH00428: Parent: child process 6320 exited with status 3221226356 -- Restarting.
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(398): AH00821: shmcb_init allocated 512000 bytes of shared memory
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(412): AH00822: for 511944 bytes (512000 including header), recommending 32 subcaches, 88 indexes each
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(449): AH00824: shmcb_init_memory choices follow
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(451): AH00825: subcache_num = 32
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(453): AH00826: subcache_size = 15992
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(455): AH00827: subcache_data_offset = 2128
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(457): AH00828: subcache_data_size = 13864
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:debug] [pid 4580:tid 700] mod_socache_shmcb.c(459): AH00829: index_num = 88
[Wed Jun 17 13:04:58.754968 2020] [socache_shmcb:info] [pid 4580:tid 700] AH00830: Shared memory socache initialised
[Wed Jun 17 13:04:58.754968 2020] [ssl:info] [pid 4580:tid 700] AH01887: Init: Initializing (virtual) servers for SSL
[Wed Jun 17 13:04:58.755969 2020] [ssl:info] [pid 4580:tid 700] AH01876: mod_ssl/2.4.43 compiled against Server: Apache/2.4.43, Library: OpenSSL/1.1.1g
[Wed Jun 17 13:04:59.925030 2020] [mpm_winnt:notice] [pid 4580:tid 700] AH00455: Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/5.6.40 configured -- resuming normal operations
[Wed Jun 17 13:04:59.925030 2020] [mpm_winnt:notice] [pid 4580:tid 700] AH00456: Server built: Apr 21 2020 14:07:49
[Wed Jun 17 13:04:59.925030 2020] [mpm_winnt:info] [pid 4580:tid 700] AH80000: Distributed by: The Apache Haus
[Wed Jun 17 13:04:59.925030 2020] [mpm_winnt:info] [pid 4580:tid 700] AH80001: Compiled with: Visual Studio 2017
[Wed Jun 17 13:04:59.925030 2020] [core:notice] [pid 4580:tid 700] AH00094: Command line: '\\xampp\\apache\\bin\\httpd.exe -d /xampp/apache'
[Wed Jun 17 13:04:59.925030 2020] [core:debug] [pid 4580:tid 700] log.c(1568): AH02639: Using SO_REUSEPORT: no (0)
[Wed Jun 17 13:04:59.928027 2020] [mpm_winnt:notice] [pid 4580:tid 700] AH00418: Parent: Created child process 11568 |
Code where the webserver restarts
"$ldapbind = ldap_bind($ldap,$ldapuser,$pw)"
Code: |
// connect to active directory
$ldap = ldap_connect("ldaps://xx.xx.xxx",636); // must be a valid LDAP server!
$ldapuser="uid=xxxxxx,ou=people,ou=pg,o=world";
$pw="xxxxx";
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0);
//ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
$filter="(|(ExtShortName=".$user."))";
echo $filter;
$ldapbind = ldap_bind($ldap,$ldapuser,$pw);
$result = ldap_search($ldap,$ldap_dn,$filter); |
please help |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 18 Jun '20 20:44 Post subject: |
|
|
Okay, that is a PHP error and not an apache error. Which php version do you run? Which apache version? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 20 Jun '20 20:26 Post subject: |
|
|
Reading the supplied errors it says the versions;
Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/5.6.40
Apache Haus VC15
Are you trying to LoadModule the php5apache2_4.dll or using mod_fcgid |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Sat 27 Jun '20 14:09 Post subject: |
|
|
Quote: | Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/5.6.40 configured |
This looks like loading a VC11 php5apache2_4.dll into a VC15 Apache. That is really asking for troubles. VC15 is not compatible with VC11. Moreover even the OpenSSL versions are different. PHP 5.6 still uses OpenSSL 1.0.2 and Apache 2.4.43 OpenSSL 1.1.1.
I would even advice not to load PHP 5.6 with mod_fcgid under Apache 2.4.43 with OpenSSL 1.1.1g. Too much chance for conflicts between the DLL's in the PHP directory and those in the Apache/bin directory.
On my own production server I have the luxury of having 5 IPv4 numbers. On one of those 5 I have a VC11 Apache 2.4.43 with OpenSSL 1.0.2, PHP 5.3 as mod_php and PHP 5.6 as mod_fcgid for really legacy applications (Drupal 6 for a website that is only being used for reference).
On the other IP's a VC15 Apache 2.4.43/OpenSSL 1.1.1g is running with a mixture of PHP 7.1, 7.2, 7.3 and 7.4 (all with their own Opcaches). |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Sat 27 Jun '20 18:09 Post subject: |
|
|
Quote: | ldap_connect("ldaps://xx.xx.xxx",636) |
That is a 's' connection, meaning that it uses OpenSSL. In those cases you should not have 2 different OpenSSL versions in your environment. |
|
Back to top |
|
hegele.o
Joined: 16 Jun 2020 Posts: 2 Location: WALLDUERN
|
Posted: Mon 06 Jul '20 9:03 Post subject: |
|
|
I found an workaround.
i installed the 32Bit version. Now it works.
Apache/2.4.37 (Win32) OpenSSL/1.0.2p PHP/5.6.40
But i don't know where the Windows Server 2016 64bit have the problems, because before it works with the 64bit version.
Thanks for help. |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Mon 06 Jul '20 11:17 Post subject: |
|
|
It wrks now because you have installed Apache in a version that matches that of your PHP 5.6. 32-bits, VC11 and also OpenSSL 1.0.2. |
|
Back to top |
|
|
|
|
|
|