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

uninstallation - How can I completely disable a WordPress installation?

programmeradmin2浏览0评论

I would like to completely disable a Wordpress website. I'd like it to be completely inaccessible to visitors, and have no activity taking place on the server (no updates, cron jobs, etc.) I'd like to do this in a non-destructive manner, so that I can access the files if I need to (via FTP), or even re-enable the site at a future date.

In other words, "put it in mothballs."

I've tried searching but only come up with "maintenance mode" solutions, in which there is still activity on the server.

Can I do something simple, for example: rename index.php in the root folder, to index-disabled.php? Are there any other options, besides deleting the entire contents of the site? What is the best and safest way to do this?

(SEO is of no concern.)

I would like to completely disable a Wordpress website. I'd like it to be completely inaccessible to visitors, and have no activity taking place on the server (no updates, cron jobs, etc.) I'd like to do this in a non-destructive manner, so that I can access the files if I need to (via FTP), or even re-enable the site at a future date.

In other words, "put it in mothballs."

I've tried searching but only come up with "maintenance mode" solutions, in which there is still activity on the server.

Can I do something simple, for example: rename index.php in the root folder, to index-disabled.php? Are there any other options, besides deleting the entire contents of the site? What is the best and safest way to do this?

(SEO is of no concern.)

Share Improve this question asked Feb 26, 2022 at 1:07 hommealonehommealone 851 silver badge10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You could move the files to a non-web-accessible directory and change the password on the database user.

eg, if your site's root directory is /var/www/html, you could create a directory elswhere on the server (say /home/me/site-archive) and move the files from /var/www/html into /home/me/site-archive.

If you ever want to re-activate the site, you can move the files from /home/me/site-archive back to /var/www/html, and set the database user's password back to what you find in wp-config.php (or update wp-config.php to use the new password).

发布评论

评论列表(0)

  1. 暂无评论