While these issues are not common, they can occur on budget hosts or hosts that may not be properly configured for the installer to run.
Below is a list of “QUICK OPTIONS” and “ERROR RESPONSES” with recommendations for each. For error codes, please jump directly to that code number.
QUICK OPTIONS
Timeout Issues
The web server is not configured to run long enough to extract the archive and install the database.
- The quick & easy workaround is to perform a manual extraction
- It’s also recommended to use mysqldump for larger databases and shell_exec for large archives if possible and if your host supports them.
Disable Plugins
If you have security or caching plugins installed, it’s recommended to temporarily disable them to avoid conflicts at install time. Some security plugins can reach outside a WordPress installation and monitor external folders, while others, once enabled in a new environment, need additional configuration.
- During Build: This can be done by creating your backup with all cache and security plugins temporarily disabled and adding all cache paths to the directory filters list.
- Before Install: If you’re already too far into the installation process and don’t want to create a new backup, you can always perform a manual extraction and temporarily remove or rename the plugin folder of the plugin you suspect to be causing issues. Finish up the installation process and then restore the plugin.
- During Install: On Step 3 of the installer under options, there is a select box where you can disable plugins. Check the option to disable all plugins and continue with the installation. Once you have the site installed, you can then re-activate all the plugins.
Wordfence Plugin
Wordfence is an excellent plugin, but moving a WP site with it enabled can cause issues when initially trying to get the site re-deployed.
- The quickest fix is to disable the plugin’s firewall temporarily until you get your site deployed.
- Wordfence has a firewall feature that filters PHP code. So when running the installer.php, it could be blocked by Wordfence. This is more relevant for users with multiple WordPress installations. For example, if you’re attempting to duplicate a WordPress install while another WordPress site existed in another directory, then you may get a “403 Access Denied” error since Wordfence works across multiple directories. Below are some steps to whitelist the installer:
- Go to your Wordfence Live Traffic page.
- After installation, if you remove the rule, be sure to whitelist it again when you run the installer.
Check .htaccess file
Improper web server configurations can cause issues such as:
- Missing directory Index: To fix, add
DirectoryIndex index.html index.php
to .htaccess. - Check with your host for mod_security rules. For example, the following rule on Siteground hosting will lift a server security rule for the installer to work properly:
<IfModule mod_security.c>SecFilterRemove 001838</IfModule>
ERROR RESPONSES
500 Internal Server Error
If you get this error from any log or response, please see:
How do I handle ‘Internal Server 500’ messages?
403 Forbidden/Access Denied
If you get this response it can be related to permissions, below are a few options:
- Give your root WordPress folder permissions (such as 755)
Note: Step 1 Advanced options will allow you to recursively set permissions on directories or files - Contact your host with the error and ask them about any firewall rules they enforce.
- Check the .htaccess file
see Check .htaccess file above… - Temporarily disable any firewall/security plugin
see Disable Plugins & Wordfence Plugin above…
Also See:
How do I handle “Internal Server 500” messages?
Wordfence documentation
ModSecurity Site
ModSecurity Reference
Recommended hosting providers for Duplicator?