Openssl.conf and php.ini

I am trying to get Mainwp up and running on a new install.

As i am using windows and mainwp requests location of openssl.conf but i cannot find this file within the sites but found a .conf file in app/roaming. This created an error within the mainwp dashboard. Where can i find this and allow mainwp access the operations of it?

An error also occurred with curl but i cannot see line stating - ;extension=php_curl.dll so i added it like so ‘extension=php_curl.dll’ to activate it. I also realised there is no php_curl.dll

How can i get this up and running please?

Manny thanks.

I am using Apache - > mysql 5.6 -> php 5.6.2

Hi @jumadigi,

All of the config files are in either the conf directory or inside the site container itself. You can “SSH” into the site by right-clicking on the site in the sidebar then going to “Open Site SSH”.

cURL is already enabled for all versions of PHP in Local. Also, DLLs won’t work since the Local site containers are running Linux :slight_smile:

Thanks Clay. Got it up and running.

1 Like

Hello, jumadigi,

I’m also configuring MainWP and cannot find the location of openssl.cnf

Can you or anybody else point me to it?


Every site has its own openssl.cnf file inside the site’s container. The specific path is /etc/ssl/openssl.cnf

Here’s how you can edit it:

  1. Right-click on the site in Local’s sidebar
  2. Go to “Open Site SSH”
  3. Run nano /etc/ssl/openssl.cnf to open a command-line editor.

If you wish to edit it using your main editor, you can substitute step #3 with the following:

  1. Run cp /etc/ssl/openssl.cnf /app/openssl.cnf
  2. Navigate to the site’s app folder on your Mac or PC
  3. Edit the file
  4. Go back to Terminal or Cmd and run mv /app/openssl.cnf /etc/ssl/openssl.cnf

Thank you for responding, Clay.

In fact I need to specify a path to openssl.cnf in the settings of MainWP

So far, I used DesktopServer and the path was: C:\xampplite\apache\conf\openssl.cnf

Here is what MainWP wants me to do:

Got it.

In that case /usr/lib/ssl/openssl.cnf is what the PHP info screen in Local shows. /usr/lib/ssl/openssl.cnf is symlinked directly to /etc/ssl/openssl.cnf so either one should work.