Print

WP Staging Settings for Small Servers

If the cloning process stops with an error, you can try out the WP Staging settings mentioned in this article.

These settings are optimized for servers with very low memory and CPU power. They are also useful if your server uses rate limits, which blocks ajax requests when there are too many subsequent requests.

General Recommendations

Below, you find a few possible error scenarios. Look at the one that fits best to your error case and apply the suggested recommendation to fix the cloning error.

Cloning Interrupts while Copying Database Tables

If the cloning process interrupts while it copies database tables (step 1) set the WP Staging settings to:

  • CPU Load: Low
  • DB Copy Query Limit: 5.000 or lower
  • DB Search & Replace Limit: 5.000 or lower

Cloning Interrupts while doing Search & Replace

If the cloning process interrupts while it does a search & replace of database tables (step2):

  • CPU Load: Low
  • DB Copy Query Limit: 10.000 or lower
  • DB Search & Replace Limit: 1.000 or lower

Cloning Interrupts while Copying Files

If the cloning process interrupts while it copies files or if it stops with the error “Error 404 Can’t find Ajax request URL”, use the settings below:

  • CPU Load: Low
  • Delay Between Requests: 1The option Delay Between Requests will slow down tremendously the cloning process, so it should be used as the last option only.

Recommended Settings for Small Servers

The settings below should be working fine on 99% of all servers:

Enable Optimizer and Disable WP Staging debug mode

Increase PHP Memory Limit and WordPress Memory Limit

If the settings above are not working and you still get an error while cloning your website, try to increase the memory limit in WordPress. To do so, edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you need to use an FTP client or any other file manager.

Paste the code below into the wp-config.php just before the line that says, ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M');
This code tells WordPress to use up to 256 MB of memory.

Once you are done, save your changes and upload the wp-config.php file back to your server.

If you have access to the php.ini of your server, you should also increase the PHP memory limit in your php.ini.

If you want to learn more about how to increase the WordPress and PHP  memory limit, please read this article.

Another good article to learn more about it:
https://haydenjames.io/understanding-php-memory_limit/

Try the cloning process again.

If this does not resolve the issue please open a support ticket and send us your system info log from wp staging > tools > system info

 

Updated on August 11, 2020