Techies Adsense

Friday, 14 April 2017

wordpress asking for ftp with localhost why?

Today I was updating word press plugin on local System but when I select the plugin and click on update it ask me to put ftp details. The blow solutions can help you to By Pass wordpress asking for ftp on localhost

Issue: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Like below:

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Next I perform permission but still there.

Solutions 1:

chown -R wordpress:wordpress /var/www/html

Solutions 2:
Now I found solutions some where and edit wp-config.php then add below line:

define('FS_METHOD', 'direct');

The issue has been fixed now and able to update the word press plugin now.