• Resolved zeno001

    (@zeno001)


    I have created a local site to run MainWP in Local by Flywheel. I have other sites running perfectly well.

    I can install the MainWP dashboard but when I run through the Quick Setup Wizard and try to add a site, it says the child plugin can’t be found but when I finish the wizard, I get this warning at the top of the dashboard regardless of which MainWP page I’m on:

    ( ! ) Warning: openssl_pkey_export(): cannot get key from parameter 1 in C:\Users\livec\Local Sites\mainwp\app\public\wp-content\plugins\mainwp\pages\page-mainwp-server-information-handler.php on line 216

    … followed by the call stack data.

    I don’t get this on the wp-admin dashboard.

    I’m running it on a W10 PC but I *think* Local provides a Linux environment, that’s what I chose in the wizard. However, if I choose Windows, it asks for the location of the OpenSSL.cnf file, which I cannot locate – I’ve seen several threads on this but they didn’t seem to answer it for me.

    I assume the reason I can’t connect to the child has something to do with this warning but I’m stuck.

    I did wonder if my Kaspersky security was blocking Local but I added Local as a trusted application (I’ve tried many combinations of the various options) and even with Kaspersky disabled, I get the same error. However, I think Windows Defender may have taken over instead.

    To save me running around in circles, has anyone come across this and can you tell me what I’m missing?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author mainwp

    (@mainwp)

    For Windows please check this knowledge base article on locating your OpenSSL.cnf file.

    https://kb.mainwp.com/docs/how-to-find-the-openssl-cnf-file/

    Thread Starter zeno001

    (@zeno001)

    Thanks for the quick response!

    I’d found that page but none of the options seems to apply: there is no xampp/wampp directory. If I look at the phpinfo page (linked to in Local), it tells me the location should be C:\usr\local\ssl/openssl.cnf but there is no such location – that’s a Linux path.

    Just to see what happens, I did enter that as the location of the openssl.cnf file but when I click on Connect, I get:

    MainWP Child Plugin not detected! Please make sure that the MainWP Child plugin is installed and activated on the child site. For additional help, contact the MainWP Support.

    If I disable the ‘valid SSL’ option, I get the same (the site does have a valid SSL cert – and all the parameters are correct). If I continue anyway, I get the same error on the MainWP dashboard pages.

    If I try to add a site without using a Unique security ID, I still get the same error and the same dashboard warning.

    I think a fundamental question is whether I should be selecting Linux or Windows. I have also posted on the Local by Flywheet support forum as I don’t really know where the issue lies but not had a definitive answer yet, just someone on a mac with the same error.

    If C:\usr\local\ssl/openssl.cnf is actually the path MainWP wants to use, can I create that directory and copy an openssl.cnf file into it? Is there a way of creating that file?

    Plugin Author mainwp

    (@mainwp)

    I haven’t used Local by FlyWheel myself but this post in MainWP Meta may help https://meta.mainwp.com/t/invalid-request-21/1133/5

    If not, I can try and install it in the next week and make a specific KB article for it.

    Thread Starter zeno001

    (@zeno001)

    Ha! I read that about ten minutes ago ??

    But I’m not clear where it is saying the default location is and what the Windows bug does. Is it C:\OpenSSL-Win32?

    And is this all that’s required for an empty openssl.cnf file?

    HOME = .
    RANDFILE = $ENV::HOME/.rnd

    [ v3_ca ]

    A local install does seem like a good idea for MainWP so it would be good if you could try it and let me know.

    Thanks for your help.

    Plugin Support Bogdan Rapaic

    (@bogdanrapaic)

    Hi Zeno,

    C:\OpenSSL-Win32 doesn’t look like the correct path. Can you please try to use the Search feature on your computer and locate the correct path for the openssl.cnf file?

    Thanks

    Thread Starter zeno001

    (@zeno001)

    My apologies, @bogdanrapaic, I had missed your reply.

    There are openssl.cnf files but they are all in the WPVivid backup plugin directories I have installed in some Local sites. There are none anywhere else.

    The directory it’s in is \wp-content\plugins\wpvivid-backuprestore\vendor\phpseclib\phpseclib\phpseclib

    So clearly, this is used with phpseclib: does there need to be something installed under MainWP to create that lib and an openssl.cnf file?

    @mainwp: have you been able to try it?

    • This reply was modified 3 years, 8 months ago by zeno001.
    Thread Starter zeno001

    (@zeno001)

    Ah.

    I realised that Local was installed just for me rather than for all users – I’m not sure why I did that when I installed it. However, I reinstalled Local for all users and after adding Local.exe as an exclusion in Kaspersky, I copied the openssl.cnf file I found in WPVivid (I reckoned this might do as a starting point) and placed it in C:\Users\<user>\Local Sites and pointed the Quick Setup Wizard to that file, it all seems to work – I no longer get that error.

    So far so good.

    However, I still couldn’t add a site. I got:

    “MainWP Child Plugin not detected! Please make sure that the MainWP Child plugin is installed and activated on the child site. For additional help, contact the MainWP Support.”

    I wondered if this was being blocked by Wordfence on the child site so I temporarily deactivated it but that wasn’t the cause.

    However, switching “Verify SSL certificate (optional)” off allowed the dashboard to connect so it’s finally all working, even if I don’t really understand what the issue was in the first place.

    Plugin Author mainwp

    (@mainwp)

    Hi @zeno001,

    I am glad to see that the problem is solved. Also, thank you for sharing the solution, I am sure it will help other users that stumble upon similar problems.

    FUN FACT!

    I am also using LOCAL by Flywheel but I’m on a MAC. I was having the same issue, and fixed it during the MainWP quick setup by lying and saying I was on a PC, so I could input the correct path to an openssl.cnf file.

    @mainwp perhaps it may be a good idea to add that input for us mac users as well. Hope this helps someone!

    shortster

    (@shortster)

    @lijitimit Here another MAC user. How exactly did you faked being on a PC to get to that input field in the MainWP quick setup?

    lijitimit

    (@lijitimit)

    @shortster During the setup on step 2 you should see a box to input the path. I think they changed the set up from before, so I can’t seem to re-create the original steps. You can see the box I’m talking about on the set up video at around 1:38 here. Cheers!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Install issue on a Local by Flywheel site’ is closed to new replies.