简体   繁体   English

将Wordpress从本地服务器移动到实时站点时遇到问题

[英]Problems moving Wordpress from local server to live site

I'm making my first steps learning to code and working with Wordpress. 我正在迈出第一步,学习编码并与Wordpress合作。 I've been watching some tutorials and then I decided to make my own theme on localhost so like this I could continue learning from the practice. 我一直在看一些教程,然后决定在localhost上创建自己的主题,这样我就可以继续从实践中学习。

After some months of learning I finally made a wordpress theme. 经过几个月的学习,我终于提出了一个WordPress主题。 And now I want to launch it in a live site to show it to the world! 现在,我想在一个实时站点中启动它以向全世界展示!

I have been reading a lot of posts and tutorials explaining the apparently easy but hard method of move a Wordpress site from local to live. 我读了很多文章和教程,解释了将Wordpress网站从本地迁移到现场的简单但困难的方法。

I tryied it but I can't see my site online. 我尝试了一下,但无法在线看到我的网站。 That's why I would like to tell you how I did it, maybe I'm omitting an step or there is something that I'm doing wrong? 这就是为什么我想告诉你我是如何做到的,也许我省略了一步,或者我做错了什么?

1) I already have a site online. 1)我已经有一个在线网站。 So my idea is to keep my actual site but make a subfolder inside with my wordpress. 因此,我的想法是保留我的实际网站,但在Wordpress中创建一个子文件夹。 So like this I have two sites in the same domain: www.myactualsite.com/newwordpress 因此,我在同一个域中有两个网站:www.myactualsite.com/newwordpress

2) I open my Filezilla, I went to my actual site directory and I created a new directory inside where I pasted all the content of my wordpress directory from the local host. 2)我打开Filezilla,转到实际的站点目录,并在其中创建了一个新目录,在该目录中,我从本地主机粘贴了wordpress目录的所有内容。

3) I exported the database from the local host site and with the help of my text editor I replaced all the local host url's for my new live site url's. 3)我从本地主机站点导出了数据库,并在文本编辑器的帮助下,将所有本地主机URL替换为新的实时站点URL。

4) I created a new database in my live site, and I imported all the content of the database I created in local host. 4)我在实时站点中创建了一个新数据库,然后导入了在本地主机中创建的数据库的所有内容。

5) In Filezilla, I updated the wp-config file of my wordpress and I wrote the name of the new database I just created, the password of that database, and my user name for that database. 5)在Filezilla中,我更新了wordpress的wp-config文件,并写下了刚创建的新数据库的名称,该数据库的密码以及该数据库的用户名。

Then I went to my new site address, but I can't see anything, it didn't even show an error. 然后我去了我的新站点地址,但是什么也看不到,甚至都没有显示错误。 Just a white screen. 只是一个白色的屏幕。

Do you have some suggestion for this? 您对此有何建议?

Well, the easier method is, 好吧,更简单的方法是

  • Install new copy of WordPress on that path. 在该路径上安装WordPress的新副本。
  • Export your current WordPress, by tools > export 通过工具>导出当前WordPress
  • Go to new WordPress, click on import > WordPress > Upload the file. 转到新的WordPress,单击导入> WordPress >载文件。

that's it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM