Wordpress FTP connection setting for localhost to upload and install WooCommerce
Try:
chmod 777 /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/plugins/
chmod 777 /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/themes/
Then add these to wp-config.php
:
/** Add here*/
define('FS_METHOD','direct');
define("FTP_HOST", "localhost");
define("FTP_USER", “my_wordpress_user”);
define("FTP_PASS", “password”);
/** To here*/
In the line above, my_wordpress_user
and password
are the ones used in wordpress.
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
define('FS_METHOD','direct');
define("FTP_HOST", "localhost");
define("FTP_USER", "admin");
define("FTP_PASS", "1234");
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.