Recently I exported a few WordPress websites using phpMyadmin for the database and file manager for the files. Without checking, I removed the websites from the server.
Now I have a big problem because the databases give me an error when I try to re-import them because the database didn’t fully export and at the end of each database, I have this line:
“< p>The dynamic response body size is over the limit, the response will be truncated by the web server. The limit is set in the key ‘maxDynRespSize’ located in the tuning section of the server configuration, and labeled ‘max dynamic response body size’.”
How do I fix this so it doesn’t happen again?
Is it possible for me to somehow recover the website data that I deleted?
Your WordPress sql files are invalid for some reason during generation. Check your sql files you may see errors at the end of the files.
Possible solution:
Log into OLS/LS WebAmin Console → Server Configuration > Tuning and adjust Max Dynamic Response Body Size (bytes) - Increase it DO NOT decrease it
Set the limit reasonably low to help identify bad responses. It is not uncommon to malformed scripts to contain an infinite loop which leads to infinity-sized responses.
“The dynamic response body size is over the limit, the response will be truncated by the web server. The limit is set in the key ‘maxDynRespSize’ located in the tuning section of the server configuration, and labeled ‘max dynamic response body size’”
is what is included at the end of each wordpress sql export.
I am assuming that the database is too big so I need to increase the limit. I just don’t know how to do it. Is there a guide on this or an easy step by step?
Thank you. In regards to my php.ini file and that guide, that would be for importing and I already set the max import to 512MB as seen in the screenshot
Now edit /usr/local/CyberCP/public/phpmyadmin/config.inc.php
## https://docs.phpmyadmin.net/en/latest/config.html
/**
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '/home/mysql';
$cfg['SaveDir'] = '';
Then using sFTP download your sql dumps. Depending on your user os you can either install bitvise ssh client for windows or remmina for linux or Termius for all os - Mac included to do this stress-free
Now, is there no way to skip this completely to avoid using console and to make this work straight from phpMyadmin? If not then no big deal.
Now, I keep CyberPanel updated and do all the updates as frequently as possibly but I see now that phpmyadmin is outdated… Should I wait till that is something updated via the CyberPanel update?
If you do not have access to console. You can create a folder in /home/mywordpresswebsite.org and change the /usr/local/CyberCP/public/phpmyadmin/config.inc.php using Root File Manager addon to that location. Then use sFTP as advised above
Now edit /usr/local/CyberCP/public/phpmyadmin/config.inc.php
## https://docs.phpmyadmin.net/en/latest/config.html
/**
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '/home/mysql';
$cfg['SaveDir'] = '';
Then using sFTP download your sql dumps. Depending on your user os you can either install bitvise ssh client for windows or remmina for linux or Termius for all os - Mac included to do this stress-free