Open the file : wp-config.php

Find and edit this line, or add it if it does not exist :

define('FS_METHOD','direct');