Wordpress FTP connection setting for localhost to upload and install WooCommerce

前端 未结 4 842
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 08:52

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 credent

4条回答
  •  猫巷女王i
    2021-02-06 09:50

    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.

提交回复
热议问题