You need to write
define('FS_METHOD', 'direct'); in wp-config.php. Make sure you can add this line just after define( ‘DB_COLLATE’, ” );
So it will look like the following:
define( 'DB_COLLATE', '' );
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.