(S)FTP Unable to Open Errors


The following error appears when you click Test Connection at Configuration () > System Settings > Database Backups:

(S)FTP: Unable to open for writing


This error indicates that WHMCS cannot open a test file in the PHP system directory (the sys_temp_dir PHP setting) via the PHP fopen function.


Make certain that:

  • The php.ini file includes a valid sys_temp_dir value.
  • The PHP system temporary directory has writeable permissions.
  • The fopen function is not disabled in the PHP configuration.

Last modified: June 11, 2024