enabled ssl for a virtualhost, now apache will not start

Discussion in 'Installation/Configuration' started by denpark, Nov 21, 2011.

  1. denpark

    denpark New Member

    Hello, here's the situation:

    -I have several sites on my ispconfig - all of them are using the same IP.

    right now apache will not start after I enabled SSL for one of the sites.

    here's the error log for apache2:

    -------------------------------------------------------
    Code:
    [Sun Nov 20 06:25:05 2011] [notice] Digest: generating secret for digest authentication ...
    [Sun Nov 20 06:25:05 2011] [notice] Digest: done
    [Sun Nov 20 06:25:05 2011] [notice] Apache/2.2.20 (Ubuntu) DAV/2 SVN/1.6.12 mod_fcgid/2.3.6 PHP/5.3.6-13ubuntu3.2 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2
    011-06-30) mod_ssl/2.2.20 OpenSSL/1.0.0e configured -- resuming normal operations
    [Sun Nov 20 06:25:05 2011] [warn] long lost child came home! (pid 2029)
    [Sun Nov 20 14:52:09 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: login in /usr/local/ispconfig/interface/lib/classes/plugin.inc.php on li
    ne 139, referer: http://mydomain.com:8080/
    [Sun Nov 20 14:52:11 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined offset: 3 in /usr/local/ispconfig/interface/web/dashboard/dashboard.php on line
     103, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:11 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined offset: 3 in /usr/local/ispconfig/interface/web/dashboard/dashboard.php on line
     103, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:11 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined offset: 3 in /usr/local/ispconfig/interface/web/dashboard/dashboard.php on line
     110, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:11 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined offset: 3 in /usr/local/ispconfig/interface/web/dashboard/dashboard.php on line
     110, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:15 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: web_id in /usr/local/ispconfig/interface/web/sites/ajax_get_json.php on
    line 38, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 557, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 557, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 558, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 558, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 559, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 559, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 560, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 560, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: on_after_update in /usr/local/ispconfig/interface/lib/classes/plugin.inc
    .php on line 139, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: sites:on_after_update in /usr/local/ispconfig/interface/lib/classes/plug
    in.inc.php on line 139, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:21 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: sites:web_domain:on_after_update in /usr/local/ispconfig/interface/lib/c
    lasses/plugin.inc.php on line 139, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:29 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: web_id in /usr/local/ispconfig/interface/web/sites/ajax_get_json.php on
    line 38, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 557, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 557, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 558, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 558, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 559, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 559, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined variable: page_form in /usr/local/ispconfig/interface/web/sites/web_domain_edit
    .php on line 560, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Trying to get property of non-object in /usr/local/ispconfig/interface/web/sites/web_doma
    in_edit.php on line 560, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: on_after_update in /usr/local/ispconfig/interface/lib/classes/plugin.inc
    .php on line 139, referer: http://mydomain.com:8080/index.php
    [Sun Nov 20 14:52:30 2011] [error] [client 9.9.9.9] PHP Notice:  Undefined index: sites:on_after_update in /usr/local/ispconfig/interface/lib/classes/plug
    in.inc.php on line 139, referer: http://mydomain.com:8080/index.php
    ---------------------------------------

    any suggestions? Thanks in advance!

    Dennis
     
  2. denpark

    denpark New Member

    just an fyi - I followed the directions for setting up SSL on a site from the manual.
     
  3. denpark

    denpark New Member

    here is the error log of the site that i enabled the SSL on -- it looks like it was not able to configure it?

    A suggestion to resolve the issue would be great.

    Code:
    [Sun Nov 20 14:57:03 2011] [error] Unable to configure RSA server private key
    [Sun Nov 20 14:57:03 2011] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

    *I was able to undo / backout of the change by restoring a copy of the vhost file in /etc/apache2/sites-available/mydomain.com.vhost file.*
     
    Last edited: Nov 21, 2011
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The SSL certificate and key do not match. Please create a new ssl cert in ispconfig.
     
  5. denpark

    denpark New Member

    thanks for your response.

    2 questions:

    1) where in the ispconfig UI do i have to go to generate the key? the cert?

    2) How can I ensue that i get the cert and key to match?

    thanks,
    Dennis
     
  6. denpark

    denpark New Member

    I have followed the instructions in :

    5.4.1 of the ispconfig 3 manual.


    the issue i am having now is that, I cannot paste the content of the csr into the ssl request field in the ssl tab of the domain in isp config.

    this field doesn't seem to be editable.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, that explains your problem. So you havent created the ssl certificate in ispconfig and thats why the key font match.

    Normally you should create a ssl cert as decsribed in chapter 5.4. Chapter 5.4.1 is only a workaround to use existing external certificates. If you use the procedure in 5.4.1 because you have already a external cert, then you have to replace the key file and the crt file. The key mismatch error that you had happened because the key and cert that you copied to the ssl folder did not belong together or that the key or cert was not replaced.
     
  8. denpark

    denpark New Member

    Hi Til - when i create the cert using the methods described in 5.4 then i get the errors described in the previous messages with apache not restarting etc.

    only when i follow 5.4.1 does it work.

    wiht that-- the only problem now i have left is not being able to copy the ssl request into the ssl tab of the domain ui in ispconfig panel.
     
  9. bblaha

    bblaha New Member

    I do have a related question... I understand how to do that but how about people using that (regular clients?) If they save an external cert which does not match the key, the apache won't start at next restart and all pages (sites of other clients) are unavailable - apache cannot start because of RSA errors...

    Is there a way how to ignore such errors and force apache to start?
     

Share This Page