简体   繁体   English

Magento将网站移至另一台服务器后丢失布局

[英]Magento lose layouts after moving website to another server

I developed the site on the local server, and after I moved the site to another server, Magento doesn't show layouts. 我在本地服务器上开发了该站点,将站点移至另一台服务器后,Magento不显示布局。 They do not exist on the layout dropdown in admin panel. 它们在管理面板中的布局下拉菜单中不存在。

What could be the problem? 可能是什么问题呢?

Below are the steps to migrate Magento Installation within different server. 以下是在不同服务器中迁移Magento安装的步骤。

Step 1: Create Full DataBase Dump of your current installation. 步骤1:创建当前安装的完整数据库转储。

Step 2: Import your data base to your new server. 步骤2:将数据库导入到新服务器。

Step3: Create a zip of your current source code. 步骤3:为您的当前源代码创建一个zip。

Step4: Upload it via FTP and after upload Unzip it. 步骤4:通过FTP上传,上传后解压缩。

Step5: Give proper file and folder permissions. 步骤5:赋予适当的文件和文件夹权限。 [*] [*]

Step6: Navigate to your installation root. 步骤6:导航到您的安装根目录。 Then go app/etc. 然后去应用程序/等。 open the file local.xml in text editor. 在文本编辑器中打开文件local.xml。 Changes the data base details here. 在此处更改数据库详细信息。 host,user,password,dbname in the xml. xml中的主机,用户,密码,dbname。

Step7: Open your database. 步骤7:打开您的数据库。 open the table called core_config_data. 打开名为core_config_data的表。 you have run two mysql update query here. 您已经在此处运行了两个mysql更新查询。

1 . 1。 UPDATE core_config_data SET value = http://yournewdomain.com WHERE path = 'web/unsecure/base_url' 更新core_config_data SET value = http://yournewdomain.com WHERE路径='web / unsecure / base_url'

2 . 2。 UPDATE core_config_data SET value = http://yournewdomain.com WHERE path = 'web/secure/base_url' 更新core_config_data SET value = http://yournewdomain.com WHERE路径='web / secure / base_url'

Note: IF your path is like www.domain.com/source then add a slash at the end like www.domain.com/source/ 注意:如果您的路径类似于www.domain.com/source,则在末尾添加斜杠,例如www.domain.com/source/

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

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