Cannot add childsite from mainwp installed on local host

Hello,

I migrated my mainwp installation from a shared host to a local server and now I cannot connect any new child sites anymore.

The child site I am trying to connect can be reached without problems (http 200 ok). However, when I try to add the new child site I am getting the following error:

HTTP error - error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none

In my local server report everything looks ok, except for this line:

The HTTP response test get an error "cURL error 6: Could not resolve host: local.simba"Not expected HTTP response body:

My local host runs on the Webuzo control panel with a self created ssl certificate. (via mkcert)

FYI, I have also 6 other child sites connected which are running fine but they were added before I moved my mainwp installation to localhost.

The problem only appears when trying to add new child sites.

Thanks for any troubleshooting tips.

Hi @djek,

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Please find the system info report below.

Kind regards,

### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.1                                                  4.1.1                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
WPvivid Backup MainWP              0.9.10                                                                                                          
WordPress                          
WordPress Version                  >=3.6                                                  5.5.1                                        Pass        
WordPress Memory Limit             >=64M                                                  256M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.3.22                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   20M                                          Pass        
PHP Post Max Size                  >=2M                                                   8M                                           Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.18.1                                               7.65.3                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.0.2t                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.3.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mailparse, mbstring, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, soap, sockets, sqlite3, standard, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  8.0.21                                       Pass        
MySQL Mode                         NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON                                                     
Server self connect                The HTTP response test get an error "cURL error 6: Could not resolve host: local.simba"Not expected HTTP response body:
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       9.3 MB                                                 
Request Time                       1601568994                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              6                                                      
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return                                                         
Maximum number of pages to return                                                         
Primary Backup System              Default MainWP Backups                                 
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests                                                        
Minimum simultaneous install/update requests                                                       
Active Plugins                     
Blackhole for Bad Bots             2.9.1                                                  Active                                       
Block Bad Queries (BBQ)            20200811                                               Active                                       
Duplicator Pro                     3.8.9.3                                                Active                                       
MainWP Dashboard                   4.1.1                                                  Active                                       
Simple History                     2.37.2                                                 Active                                       
Two Factor                         0.7.0                                                  Active                                       
WP Server Stats                    1.6.9.1                                                Active                                       
WPS Hide Login                     1.5.6                                                  Active                                       
WPvivid Backup MainWP              0.9.10                                                 Active                                       

Hi @djek, does it help if you disable the Verify SSL Certificate option on the Add New site form when you try to add the site? Does that help?

Hello Bogdan,

I tried disabling SSL verification but that didn't help. However, I am happy to report that I did solve the problem in a different way.

I had to add my self chosen local domain names to the /etc/hosts file of my server. Once I did that everything started to work and I can now add both local as remote sites to my MainWP dashboard.

There is only one thing that still doesn't work correctly. When I try to install a wordpress plugin as a zip file from my local pc, I get the following error:

" Installation failed(cURL error 60: SSL certificate problem: self signed certificate in certificate chain)"

This probably has to do with the fact that my ssl certificates are self generated locally via a tool called mkcert.

Would it be possible to allow non ssl Curl connections to circumvent this problem ?

A bit more details about my setup:

I am using ProxMox to run Ubuntu 18.04 as a virtual machine. On this server I am running Webuzo control panel to manage different wordpress test- and staging sites. All my sites have a local custom domain name and ssl certificate.

Hi @djek, thanks for getting back to us.
I am glad to see that you solved the problem. However, MainWP doesn’t require SSL Certificates on sites.
I am not sure why this occurred on your setup.

You are going to run into a few hiccup’s when trying to run MainWP from a local environment. Not all will have immediate answers unfortunately, due to the fact that everyone will have a different setup. This usually is out of our scope of support, however you could try this:

php - Curl error 60, SSL certificate issue: self signed certificate in certificate chain - Stack Overflow.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.