Step 1.  define('FS_METHOD', 'direct');

than WordPress will not ask for ftp details.

Step2. Now it may show error related to directory permission e.g( unable to create directory ) than do this
chown -R www-data:www-data /var/www

or

chown -R ubuntu- user:www-data /var/www
find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;

Advertisements