cannot start the Apache

simonchs

Verified User
Joined
Feb 19, 2006
Messages
11
Hello,

I'm using CentOS 4.3 64bit edition, after I installed the DirectAdmin, and found that the Apache cannot be started, in the error_log and ssl_engine_log, I got the following error:

[Wed May 17 12:16:22 2006] [error] mod_ssl: Init: Failed to generate temporary 512 bit RSA private key

Could anyone please help me to solve this issue? Thanks!
 
HELP!!!

I'm getting this error also on a centos 3.7 machine running apache 1.3.36:

[02/Jun/2006 18:23:11 05134] [info] Init: Seeding PRNG with 136 bytes of entropy
[02/Jun/2006 18:23:11 05134] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[02/Jun/2006 18:23:11 05134] [error] Init: Failed to generate temporary 512 bit RSA private key

Unlike the other errors I search in google the PRNG is seeded in my example.
 
Last edited:
no sorrry

Thanks John but that's not it..

[root@leto dev]# ls -al *rand*
crw-r--r-- 1 root root 1, 8 Sep 9 2004 random
crw-r--r-- 1 root root 1, 9 Jun 2 18:02 urandom

I know it worked intially on this server. I guess I'm going to have to do a reinstall.
 
A reinstall is drastic. Have you tried reading either random or urandom from the shell yourself?

Jeff
 
It was a new install so it wasn't a big deal. The reinstall now works. cat of /dev/random and urandom on the old server didn't work. very odd.
 
Last edited:
It's something related to mysql 5.0.22 and php build that is causing this problem. Looking into it. Now that I have a good backup of the server I can figure out what has changed.
 
Last edited:
It's definately related to mysql 5 related somehow.

replaced the new mod_php with the one from backup and now apache works.
 
Last edited:
I believe I've found the issue.

configure.php file


replace:

--mysql=/usr \

with:

--mysqli=/usr \

seems to fix the problem.

Still not sure about the zlib issue but that is occuring on this server also
 
Last edited:
To add that is if you have only the standard shared libs for MySQL 5 and NOT the MySQL-shared-compat lib you can compile with the standard -mysql=/usr and it works.

Problem solved.
 
Thanks empoweri , i think the install of shared-compact rpm from the official site :

MySQL-shared-compat-5.0.XX-0.glibc23.x86_64.rpm

Its fast and better solution .
 
Back
Top