doulai8405 2019-07-21 08:30
浏览 190
已采纳

将wordpress网站从windows中的localhost迁移到centos7

I 've created a wordpress website in localhost in windows os using WAMP. now I want to migrate the website to CentOS 7. I have oracle VM and i installed CentOS 7 on it.

How can I transfer the database and the files to CentOS 7 ?

  • 写回答

1条回答 默认 最新

  • doufeng2877 2019-07-21 13:10
    关注

    Try using the All In One WP Migration plugin.

    Install it on you local site, click on export link in the plugin. Before exporting add search / replace rule. Usually this is done if you have different domain.

    If your local domain is http://domain.local you need to replace it with the new domain http://newdomain.com and click export to file.

    Screenshot of how to do that

    Then install the same plugin on the new host and use the import functionality to import the exported file.

    This will migrate your whole site with database, content, images. Everything.

    If you have problem with importing size of the file, you can increase the size on the new host by adding the following to the .htaccess file

    php_value upload_max_filesize 256M php_value post_max_size 256M php_value max_execution_time 300 php_value max_input_time 300

    or you can check this tutorial

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 数据库数据成问号了,前台查询正常,数据库查询是?号
  • ¥15 算法使用了tf-idf,用手肘图确定k值确定不了,第四轮廓系数又太小才有0.006088746097507285,如何解决?(相关搜索:数据处理)
  • ¥15 彩灯控制电路,会的加我QQ1482956179
  • ¥200 相机拍直接转存到电脑上 立拍立穿无线局域网传
  • ¥15 (关键词-电路设计)
  • ¥15 如何解决MIPS计算是否溢出
  • ¥15 vue中我代理了iframe,iframe却走的是路由,没有显示该显示的网站,这个该如何处理
  • ¥15 操作系统相关算法中while();的含义
  • ¥15 CNVcaller安装后无法找到文件
  • ¥15 visual studio2022中文乱码无法解决