Troubleshooting Backup Errors
A number of errors may appear when clicking the Test Connection button on the Setup > Other > Database Backups page.
This error indicates that the FTP server was reached, but the login details were rejected. To troubleshoot, ensure the following:
- The username and password provided are valid. Try copying and pasting the username and password into your FTP client to confirm.
This error indicates that the connection to the FTP server was successful, but the system could not navigate to the destination directory or did not have write permissions. To troubleshoot, ensure the following:
- The FTP destination directory exists and is accessible using the FTP user.
- The file path is relative to the login folder of the FTP account
- The file path contains a trailing slash, eg: backups/
- There is no preceding slash
- The FTP user has write permissions to the destination directory
This indicates that WHMCS is unable to open a test file in the PHP system directory (as defined by the sys_temp_dir PHP setting) via the PHP fopen function. To troubleshoot, ensure the following:
- A valid sys_temp_dir value is configured in your php.ini.
- The PHP system temporary directory has writeable permissions
- The fopen function is not disabled in the PHP configuration
This indicates that WHMCS is unable to write to a test file in the PHP system directory (as defined by the sys_temp_dir PHP setting) via the PHP fwrite function. To troubleshoot, ensure the following:
- The PHP system temporary directory has writeable permissions
- The fwrite function is not disabled in the PHP configuration