I can't upload WooCommerce .zip file and install the plugin on the local host. Every time I click install button Wordpress asking for connection information for the FTP credentials like this pic:
Even tough I entered localhost for the hostname and admin as username, it doesn't work!
Ok I solved the problem by editing wp-config.php in the htdocs folder where I installed Wordpress -> like image 1:
I added the below lines to the wp-config.php like image 2
The username and password is the same as the username pass when I installed the Wordpress during the installation.
Just add
define('FS_METHOD','direct');
into your wp-config.php.Try:
Then add these to
wp-config.php
:In the line above,
my_wordpress_user
andpassword
are the ones used in wordpress.