[SOLVED] httpd will not start

General support questions including new installations
Post Reply
unix1adm
Posts: 153
Joined: 2010/02/23 13:27:06

[SOLVED] httpd will not start

Post by unix1adm » 2010/09/01 13:31:55

I am trying to set up my httpd on CentOs 5.5 I did some searches and found this link...
http://wiki.centos.org/HowTos/Https

rpm -qa |grep -i httpd
httpd-2.2.3-43.el5.centos.3

I created the ssl files as they described but still it wont start.

ervice httpd start
Starting httpd: [Wed Sep 01 09:25:57 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[FAILED]


cat ssl_error_log
[Wed Sep 01 09:25:57 2010] [error] Unable to configure RSA server private key
[Wed Sep 01 09:25:57 2010] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

Anyone have this issue?

I gooled it and some older releases said it was a bug but nothing for 5.5

unix1adm
Posts: 153
Joined: 2010/02/23 13:27:06

Re: httpd will not start

Post by unix1adm » 2010/09/01 14:18:16

I should mention I am trying to make a private key for my own www test site.

found these commands in a few searches

openssl rsa -noout -modulus -in localhost.key | openssl md5
90b92a7d4f71bd988e009f065abf1c24

openssl x509 -noout -modulus -in localhost.crt | openssl md5
90b92a7d4f71bd988e009f065abf1c24

looks the same to me.


I think I figured it out...

the directions say to edit the /etc/httpd/conf.d/ssl.conf file and add
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

SSLCertificateFile /etc/pki/tls/csers/ca.crt

I changed them to be localhost.key and localhost.crt.

It now works. Well it started Ill have to try the www page later when I can get on my home network.

Can I change the file to be servername.crt or servername.key.

I'll try that and see if it works.



answer: yes i can. I renamed the files to the servername and changed the path and it still works. Life is good.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] httpd will not start

Post by pschaff » 2010/09/01 14:21:31

Standing by... Please let us know if you have solved your own problem.

unix1adm
Posts: 153
Joined: 2010/02/23 13:27:06

Re: httpd will not start

Post by unix1adm » 2010/09/01 14:28:19

Phil,

SOLVED.

On to virtual hosts and other fun stuff.

CJ

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: [SOLVED] httpd will not start

Post by pschaff » 2010/09/01 14:43:01

OK - marking the thread appropriately for posterity - thanks for reporting back.

Post Reply