Server Configuration
When installing a plugin or theme by upload, ensure that your server permits uploads of the .zip file size.
If the PHP Function tmpfile() is disabled on the server hosting your MainWP Dashboard, the plugin upload will fail. In this case, please contact your hosting provider to have the function enabled.
Security Rules
Additionally, a common issue that might prevent uploads is a security rule blocking the connection to the server hosting your MainWP Dashboard.
Please try to:
- Remove any security rules present in the .htaccess file where the MainWP Dashboard is installed
- Disable any security plugins running on your MainWP Dashboard site
- Disable Firewall running on your MainWP Dashboard server
- Disable HTTP Basic Auth protection on the URL of the MainWP Dashboard
Localhost Setup
Please note that if the MainWP Dashboard is hosted locally, the localhost will most likely not be configured to accept external traffic, and the same error message “Upload failed.” will be displayed.