Could not initialize random number generator
Posted by: rowanrh (---.dynamic.isadsl.co.za)
Date: August 22, 2013 08:21PM

Hi -

Though I have been in the IT industry for many years I am a total noob to Apache / MySQL / etc., so my apologies (in advance) for my screw-ups.

After sweating - unsuccessfully - with XAMPP I decided to try switching to WampServer.

1. I run Windows 7 Ultimate 64 SP1. My default browser is IE10.
2. I downloaded Wampserver2.4-x64.exe.
3. I installed the C++ 2010 SP1 Redistributable Package x64.
4. I installed WampServer.
5. I confirmed that port 80 - and the local host - were both free.
6. The Windows firewall is off.
7. I installed the WampApache [Apache/2.4.4 (Win64)] & WampMySqld services.
8. However, when I try to start all, the WampApache service fails.
9. The WampMySqld service starts.

The apache_error log reports the following:

[Thu Aug 22 19:09:04.235200 2013] [mpm_winnt:notice] [pid 6172:tid 388] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Thu Aug 22 19:09:04.235200 2013] [mpm_winnt:notice] [pid 6172:tid 388] AH00456: Server built: Feb 22 2013 22:08:37
[Thu Aug 22 19:09:04.235200 2013] [core:notice] [pid 6172:tid 388] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Thu Aug 22 19:09:04.265200 2013] [mpm_winnt:notice] [pid 6172:tid 388] AH00418: Parent: Created child process 2240
[Thu Aug 22 19:09:04.301200 2013] [:crit] [pid 2240] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Thu Aug 22 19:09:04.308200 2013] [mpm_winnt:crit] [pid 6172:tid 388] AH00419: master_main: create child process failed. Exiting.

NB: I experienced the same problem with XAMPP.

Any assistance would be appreciated !

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 23, 2013 12:06PM

Initially check this

Please make sure you have the latest version of all of these Microsoft C++ Redistributable runtime libraries.

The 2008 Redist is used by wampmanager
The 2010 Redist is used by some versions of Apache ( depending on compiler used )
The 2012 Redist is used by some versions of Apache ( depending on compiler used )

FOR WAMP 32bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) [www.microsoft.com]
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) [www.microsoft.com]

If you are using WampServer 2.4
Microsoft Visual C++ 2012 [www.microsoft.com]
And select vcredist_x86.exe


FOR WAMP 64bit
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) [www.microsoft.com]
Yes you need the x86 Package regardless
Microsoft Visual C++ 2008 Redistributable Package (x64) [www.microsoft.com]
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) [www.microsoft.com]
If you are using WampServer 2.4
Microsoft Visual C++ 2012 [www.microsoft.com]
And select vcredist_x64.exe


If that does not solve the problem, check the Windows Event viewer for messages from Apache that may help with identifying your issue.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: rowanrh (---.dynamic.isadsl.co.za)
Date: August 23, 2013 02:09PM

Thank you for your suggestion.

I installed / reinstalled all redistributables in your list.

NB: It should be noted that there were several DLLs with version numbers / release dates after those installed.

I then rebooted the system and attempted to start Apache.

The results were as above, i.e. the system generated the error message "could not initialize random number generator"

Kind regards

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 23, 2013 02:54PM

Can you post a section of your appache error log. Not all of it, just one attempt at startup and the resulting messages before it exits.

Also look at the Windows Event Viewer for any messages from Apache, that may also point towards a solution.



Edited 1 time(s). Last edit at 08/23/2013 02:55PM by RiggsFolly.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: rowanrh (---.dynamic.isadsl.co.za)
Date: August 23, 2013 03:42PM

Hi -

I included the messages in the Apache error log as part of my original posting (see above).

The same six lines are duplicated each time I attempt to start Apache.

The Windows Event Viewer reports no errors.

The Service Control Manager reports that "The wampapache service terminated with service-specific error Incorrect function.."

NB: I have also tested with my anti-virus software and the Windows Firewall turned off. The problem remains.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 23, 2013 05:39PM

Do you have this line uncommented in your httpd.conf?

#LoadModule ssl_module modules/mod_ssl.so

If so try commenting it out with the '#' symbol. Doe Apache load them?

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: rowanrh (---.dynamic.isadsl.co.za)
Date: August 23, 2013 08:41PM

Thank you for your suggestion.

I tried with the SSL line both uncommented and commented out.

The behaviour was the same in both cases: the same six error lines <sigh>

I also tried running httpd.exe from the command line. Once more the result was the same six error lines.

BTW should any environment variables (e.g. Windows Path) be set ?

Many thanks for your assistance

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 24, 2013 02:42AM

No changes to windows are necessary

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: Akinyemi (---.rv.ipnxtelecoms.com)
Date: November 03, 2013 12:32AM

I presumed the problem you had that lead to checking the log file has to do with starting Apache beyond the amber color of W icon .... "Could not initialize random number generator".

I had similar problem and troubleshoot for days before I stumbled unto the solution.

Check your system's environment variables...the "path" entry may have illegal symbols like "b?????Ä/????????", remove such entries. With that I was able to resolved the problem.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: Akinyemi (---.rv.ipnxtelecoms.com)
Date: November 03, 2013 12:34AM

I presumed the problem you had that lead to checking the log file has to do with starting Apache beyond the amber color of W icon .... "Could not initialize random number generator".

I had similar problem and troubleshoot for days before I stumbled unto the solution.

Check your system's environment variables...the "path" entry may have illegal symbols like "b?????Ä/????????", remove such entries. With that I was able to resolved the problem.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: shyamsundar055 (---.118.73.230.static-ttsl-hyderabad.vsnl.net.in)
Date: January 27, 2014 10:12AM

Even i have the same problem.can anyone give me the solution.

Options: ReplyQuote
Re: Could not initialize random number generator
Posted by: RiggsFolly (---.as13285.net)
Date: January 27, 2014 10:21AM

This may sound odd but check your Windows PATH for odd characters. This has been caused by a PATH corruption in the past.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.