Did you recently switch from shared hosting to VPS or Dedicated hosting? Then there might be a permission writing issue with wordpress that reads “Sorry, but I can’t write the wp-config.php file”
The solution: Change the mod_php. Login into WHM and click the following Service Configuration >> Apache Configuration >> PHP and SuExec Configuration. Change it to CGI. That’s it.
See example below…