最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Is there any risk setting Wordpress file permissions and FS method to 'direct' on localhost?

programmeradmin2浏览0评论

After installing a fresh WordPress on my computer using XAMPP, I got this message when I tried uploading a theme:

Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

I added the code

define('FS_METHOD', 'direct');

to the config.php file for it to upload without asking for any ftp credentials.

Can I leave define('FS_METHOD', 'direct') in the config.php file forever?

发布评论

评论列表(0)

  1. 暂无评论