Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Until now I was using freebsd9 with apache22 with ssl, every thing went well. But recently I moved to freebsd10 (fresh install) and then installed apache24 with same config as on old machine.

Everything is ok except that apache24 when used with ssl on port 443 produces error AH022240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificatefile] ((null): 0) And Apache24 refuses to run.

openssl verify mycertificate produces error 18 which (I think) is normal as it is a self signed certificate.

I have done whatever I could searching google/yahoo, and trying treatments suggested there but no results.

Alas my bad luck I have just formatted my old hard disk without any backup in order to install freebsd10.

share|improve this question
    
Check if the mod_ssl module is availiable using phpinfo() Also SSLCertificateFile is the directive which requires a path to the certificate. A self-signed certificate should return an OK message but will indicate that it's not signed. For more details try freebsd.org/doc/handbook/network-apache.html –  val0x00ff Mar 18 at 9:52
    
"Alas my bad luck I have just formatted my old hard disk without any backup in order to install freebsd10." -> I guess you are not talking about production server, are you? –  coincoin Mar 18 at 11:18
    
@EricDANNIELOU You are right. –  Nishan Mar 18 at 11:43
    
@val0x00ff, I can not check what you suggest as Apache24 is not running. -( –  Nishan Mar 18 at 11:44
    
@Nishan You need to first be able to start apache24 as it is, without ssl or anything. write a <? phpinfo(); ?> and see what modules there are. If you cannot start apache then i the problem is your apache not ssl. –  val0x00ff Mar 18 at 12:25

1 Answer 1

Your problem is not FreeBSD, it's Apache.
Apache 2.4 has substantially different configuration file directives than Apache 2.2.

You cannot just throw the 2.2 configuration file in place and start your 2.4 server using it - you will need to put important bits (like the SSL Certificate and Key files - per the error message you're getting) in place, and update your configuration (or write a new configuration file implementing the same functionality as your previous one) so Apache 2.4 understands it..

Refer to the Apache manual (which you should have read BEFORE upgrading) for specific instructions.

share|improve this answer
    
I respect and value your advice. But, BUT I am running Apache24 with same config on FreeBSD91 NO PROBLEMS WITH SSL OR NO SSL AT ALL, my surprise. APACHE IS INNOCENT GUY IN THIS CASE ~) I am not blaming but sure FreeBSD10 has changed its way of working potentially, which I have to understand afresh. –  Nishan Mar 21 at 6:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.