简体   繁体   English

Magento迁移到本地环境

[英]Magento migration to local environment

I'm trying to duplicate my live Magento install by bringing everything over to my local environment to get SVN going (as answered in related questions, thank you very much to all that contributed). 我试图通过将所有内容转移到我的本地环境以使SVN运行来复制我的实时Magento安装(如在相关问题中回答的,非常感谢所有贡献)。

Here's the steps I followed: 这是我遵循的步骤:

  1. Backup the site through cPanel and downloaded to local 通过cPanel备份站点并下载到本地
  2. Untarred the homedirectory and brought into htdocs 解压主目录并导入htdocs
  3. Imported the database SQL from the backup to a DB with same name 将数据库SQL从备份导入到具有相同名称的数据库
  4. Changed base URLs for all sites in the database 更改数据库中所有站点的基本URL
  5. Changed local.xml to reflect the new user/pw because of MAMP 由于MAMP,更改了local.xml以反映新用户/密码

Now, when I open the directory, nothing is loading - no errors or anything. 现在,当我打开目录时,什么都没有加载-没有错误或任何东西。 I checked permissions and made sure my other directories were functioning, which they were. 我检查了权限,并确保其他目录正常运行。 This is a 1.3 install, and I attempted to upgrade to 1.4 but ran into a ton of problems - that will have to be a future endeavor. 这是1.3版的安装,我尝试升级到1.4版,但遇到了很多问题-这将是未来的工作。 Any ideas? 有任何想法吗?

If .htaccess isn't the issue, can you check file permissions? 如果不是.htaccess,可以检查文件权限吗? Also try accessing a URL that doesn't exist at all. 另外,请尝试访问根本不存在的URL。 If you get a redirect or 404 error, that means that your blank page is probably in fact an error. 如果您遇到重定向或404错误,则意味着您的空白页实际上可能是一个错误。 Make sure that display_errors is turned on in your php.ini and in index.php (uncomment #ini_set('display_errors', 1); ) and try again. 确保在php.ini和index.php中打开了display_errors(取消注释#ini_set('display_errors', 1); ),然后重试。

I enabled errors per JM's answer and got an invalid T_String PHP error on index.php. 我根据JM的答案启用了错误,并且在index.php上收到了无效的T_String PHP错误。 __tostring() is not supported in PHP 5.3, which is the default option for MAMP. PHP 5.3不支持__tostring() ,这是MAMP的默认选项。 I would need to make some edits to the core files to get it functioning. 我需要对核心文件进行一些编辑才能使其正常运行。 Switching to PHP 5.2 fixed the issue, and the site is working correctly now. 切换到PHP 5.2解决了该问题,该站点现在可以正常工作。

Did you delete all the content under the /var/ Directory - last time I did a move like this that was the actual problem. 您是否删除了/ var /目录下的所有内容-上次我这样做是实际问题。 Then make sure you go to index management and index all the catalog. 然后确保您进入索引管理并为所有目录建立索引。

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

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