Wordpress FTP connection setting for localhost to upload and install WooCommerce

前端 未结 4 894
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  温柔的废话
    2021-02-06 09:28

    Recommanded:

    If you are using centos:

    //Set www to 777
    # chmod -R 777 /var/www/html
    // Change the owner to apache
    # chown -R apache:apache /var/www/html
    // Restart httpd
    # systemctl restart httpd
    

    Not recommanded but works:

    Add this line in wp-config.php

    define( 'FS_METHOD', 'direct' );
    

提交回复
热议问题