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

filesystem - Can I delete `wp-config-sample.php` after installing and configuring Wordpress?

programmeradmin6浏览0评论

Can I remove wp-config-sample.php after installing and configuring Wordpress?

Could this have any consequences in the future?

Is this file restored after updating?

At first glance, it just seems unnecessary

Can I remove wp-config-sample.php after installing and configuring Wordpress?

Could this have any consequences in the future?

Is this file restored after updating?

At first glance, it just seems unnecessary

Share Improve this question asked Jul 27, 2020 at 9:50 kanlukaszkanlukasz 5448 silver badges24 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

Yes, you can safely delete that file. It's a template of what a minimal wp-config.php looks like, so as soon as you have a working wp-config, you don't need it.

It will never be restored unless you reinstall Wordpress from scratch, e.g. by downloading and unpacking a clean Wordpress installation.

If for some reason you need to refer to it in the future, then you can easily get it again by downloading Wordpress and pulling it out of the archive, although it's highly likely that you'll only need it for a new manual Wordpress install.

发布评论

评论列表(0)

  1. 暂无评论