Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress FTP connection setting for localhost to upload and install WooCommerce

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: enter image description here

Even tough I entered localhost for the hostname and admin as username, it doesn't work!

like image 376
Ali.Ghodrat Avatar asked Jun 27 '17 19:06

Ali.Ghodrat


People also ask

Where are FTP settings in WordPress?

All you need is access to your web hosting company's File Manager or FTP access in order to view and edit the wp-config. php file. This file is located in the top directory of your account, listed just above the /wp-content directory.


1 Answers

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.

like image 60
MAPK Avatar answered Sep 18 '22 08:09

MAPK