Invalid request when adding 1 site to MainWP


I have been using MainWP for managing multiple websites for a while now. In the beginning I had some trouble setting it with the openssl.cnf file, but with the support of @bogdan I got it to work.

For some reason I am having the same problem now. I have tried to edit the location but the file seems to be too old?

Please see system report:

### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version                                                                             Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
MainWP UpdraftPlus Extension       4.0.4                                                  API License Active                           Pass        
WordPress Version                  >=3.6                                                  5.8.1                                        Pass        
WordPress Memory Limit             >=64M                                                  256M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP Version                        >=7.0                                                  7.4.21                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           120                                          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                                                   128M                                         Pass        
PHP Post Max Size                  >=2M                                                   128M                                         Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                error:02001002:system library:fopen:No such file or directoryWarning     
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.52.1                                       Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.0.2u                               Warning     
Your host needs to update OpenSSL to at least version 1.1.0 which is already over 4 years old and contains patches for over 60 vulnerabilities.These range from Denial of Service to Remote Code Execution. Click here for more information.
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             apache_child_terminate, apache_get_modules, apache_note, apache_setenv, closelog, dl, exec, lchgrp, lchown, link, linkinfo, lstat, opcache_reset, openlog, passthru, pclose, pfsockopen, popen, posix_access, posix_ctermid, posix_get_last_error, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_initgroups, posix_isatty, posix_kill, posix_mkfifo, posix_mknod, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setrlimit, posix_setsid, posix_setuid, posix_strerror, posix_times, posix_ttyname, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, readlink, set_time_limit, shell_exec, symlink, syslog, system, virtual,
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, pspell, session, soap, sockets, sqlite3, standard, tidy, tip_wh, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib
MySQL Version                      >=5.0                                                  10.1.48-MariaDB-1~stretch                    Pass        
MySQL Mode                         NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION             
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON                                                     
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Gateway Interface                  CGI/1.1                                                
Memory Usage                       21.72 MB                                               
Request Time                       1634552803                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              11                                                     
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksYes                                                    
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 8                                                      
Minimum simultaneous install/update requests3                                                      
Active Plugins                     
Akismet Anti-Spam                  4.2.1                                                  Active                                       
Custom Login                       3.2.11                                                 Active                                       
MainWP Child                                                             Active                                       
MainWP Dashboard                                                         Active                                       
Really Simple SSL                  5.1.2                                                  Active                                       
Wordfence Security                 7.5.5                                                  Active                                       
WPS Hide Login                     1.8.7                                                  Active                                       

Hi Eric,

Can you please tell me have you moved your MainWP Dashboard to a web server in the meantime?

Hi Bogdan,

It was always running on a shared webshosting from the beginning (TransIP).

@cireknilb Your Open SSL version is to low. Check the Warning - it’s complaining that the error log folder or file
is missing.

If you update to >=OpenSSL/1.1.0 the file structure it’s looking for will most likely be there again.

@kwcjr OK, thanks. But how to update to OpenSSL/1.1.0?

Hi Eric,

thanks is something that your host support should do for you.

Feel free to reach out to them and have them update it for you.

1 Like

In short - as @bogdan mentions reach out to your Hosting Provider. I am sure they can guide you on how to update.

If you are on a VPS on Trans IP you can most likely update the entire server yourself via Terminal. Unless you are hosted with a “Managed VPS” most likely they are leaving server software maintenance up to you & only managing the core Host Management Software & Physical Hardware if any - they could be running in the cloud themselves.

@kwcjr @bogdan About a year ago Bogdan suggested to download the Openssl.cnf file from GitHub and place it in the root-directory.

Please see the thread I am refering to:

So it seems the Openssl.cnf file needs to be updated, but I have no clue how to.

@cireknilb Yes I have read that & the GitBlob openssl/openssl.cnf at master · openssl/openssl · GitHub
was updated two months ago. - The settings within MainWP pointing to the file were still present - you simply needed to replace the file with the newer version. Download it and place it in the same spot you did last time, which i believe for you was /public_html/openssl.cnf

Contacting your Host is in reference to these two error messages within your System Report.

  • The SSL Warning is coming from the Linux application fopen and is complaining it can’t find the folder.
  • The cURL SSL Version is stating that it’s not the correct version.
SSL Warnings          error: 02001002:system library:fopen:  No such file or directory     Warning     
cURL SSL Version      >=OpenSSL/1.1.0     OpenSSL/1.0.2u                                   Warning

@kwcjr I updated the file but that did not change anything, still 1.0.2u.

So I remember I got the following message from MainWP:

And then I got confused, so I changed the location as instructed through the suggested link. After that it wasn’t possible to add new sites. So I changed it back, but still couldn’t add new sites.

So now I decided to rollback 10 days with the back-ups and everthing is working again. But still the openssl file is version 1.0.2u (yes updated it again first) and the above warning is still present.

For now I will ignore the warning/error, because it works all fine now. But would be great to get rid of the error sometime.

Hi Eric,

as long as you can add sites, you can dismiss the warning by clicking the Error Fixed button.

@cireknilb You are not understanding me.

cURL SSL Version has nothing to do with the OpenSSL.cnf file.

To update the cURL SSL Version you need to contact your Hosting Company
It is a System Application installed in Linux with 1000’s of files in it.

1 Like

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