mod_ssl: Init: Failed to generate temporary 512 bit RSA private key

by admin on Sep.07, 2009, under DirectAdmin

This error appears to show up sometimes when using MySQL 5 with –with-mysql=/usr.
There have been reports that changing it to –with-mysqli=/usr/bin/mysql_config will fix this, but when I tried it, the mysql client api in php was set to mysql 3, so it wasn’t quite working. The solution I used was to have them both in the configure.php:

–with-mysql=/usr \
–with-mysqli=/usr/bin/mysql_config \

Then recompile php:

./build clean
./build php n

Then I edited the /etc/httpd/conf/httpd.conf and changed:

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random 512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
#SSLRandomSeed connect file:/dev/urandom 512

To

#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random 512
SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
SSLRandomSeed connect file:/dev/urandom 512

Quite possibly, only the changes to the httpd.conf are actually required, but adding the extra functionality of mysqli probably won’t hurt any.
I also upgraded MySQL to 5.0.41 (this case, it was a 64-bit server):
http://files.directadmin.com/services/all/mysql/64-bit/

Related posts:

  1. How to downgrade from apache 2 back to apache 1.3 If you need to go back to apache 1.3 after...
  2. Apache won’t start after update on FreeBSD An issue with php/apache is causing apache not to start...
  3. cgi files generate Internal Server Error This means that the cgi script did not execute properly....
  4. How to disable SSL2.0 in apache To disable the SSL2.0 protocol (thus forcing 3.0), for apache...
  5. How to update to php 5 Note: If you want the latest version of php and...

Related posts brought to you by Yet Another Related Posts Plugin.

:, , ,
No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kontak

Budhi Indah A 31
Cimindi Cimahi 40514
West Java
Indonesia

Phone/SMS :
Info/Bantuan : 62-8158-6270622
Billing/konfirmasi : 62-8888-763551

Self Advertise


My site is worth $7548.2.
How much is yours worth?