WordPress asking for my FTP credentials to install plugins

后端 未结 14 840
南旧
南旧 2020-11-30 17:52

I installed a WordPress blog in my local system. But when I try to add plugins from admin it asks for FTP access. What do I need to configure for WordPress to be able to up

14条回答
  •  误落风尘
    2020-11-30 18:23

    "Whenever you use the WordPress control panel to automatically install, upgrade, or delete plugins, WordPress must make changes to files on the filesystem.

    Before making any changes, WordPress first checks to see whether or not it has access to directly manipulate the file system.

    If WordPress does not have the necessary permissions to modify the filesystem directly, you will be asked for FTP credentials so that WordPress can try to do what it needs to via FTP."

    Solution: In order to find out what user your instance of apache is running as, create a test script with the following content:

    
    

    For me, it was daemon and not www-data. Then, fix the permission by:

    sudo chown -R daemon /path/to/your/local/www/folder
    

提交回复
热议问题