WP一键搬家至Vultr

主机还是太慢,已经续费了几年的主机用来干别的好了,将178WZ博客搬到自己的vps,各种性能大大提升。

正好Vultr有活动,新人送50刀,首先这是我的推广链接https://178wz.net/vultr,vultr里面提供支付宝,微信支付,只要注册充1刀就送50刀,这50刀有效期30天。

搬家的方法如下:首先在自己的博客里搜插件All-in-One WP Migration,安装,启用后,选择导出到文件,静静等待进度条完成。

在新的vps或其他主机上安装好wordpress,打开空白的wordpress后台,第一步安装上面那个备份插件All-in-One,第二步打开https://import.wp-migration.com/,下载basic,手动安装插件,将zip文件导入,第二步的作用是解除all in one的50M文件限制;第三步,导入–>文件,选择之前备份好的.wpress后缀文件,静静等待。之后固定链接两次保存即可。

 

ps,可能恢复中会出现“constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP)”之类的问题,一般出现在73line,首先升级wordpress到最新版,接下来编辑主题,再function.php文件中第73行,将一整行替换为$path = $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];,红色部分都复制!

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据


Fatal error: Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 14193: "],b)?a:wb(a)} in /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214 Stack trace: #0 /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action() #1 /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min() #2 /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(843): JSMin::minify() #3 /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php(402): autoptimizeScripts->minify_single() #4 /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/autoptimizeMain.php(591): autoptimizeScripts->read() #5 [internal function]: autoptimizeMain->end_buffering() #6 /www/wwwroot/178wz.net/wp-includes/functions.php(5349): ob_end_flush() #7 /www/wwwroot/178wz.net/wp-includes/class-wp-hook.php(310): wp_ob_end_flush_all() #8 /www/wwwroot/178wz.net/wp- in /www/wwwroot/178wz.net/wp-content/plugins/autoptimize/classes/external/php/jsmin.php on line 214