简体   繁体   English

Magento:如何将PHP从5.3更改为5.4?

[英]Magento: How to change PHP from 5.3 to 5.4?

Magento version: 1.7.0.2 I am currently running PHP 5.3.29, given recent security patch update its recommended to have PHP 5.4 and up. Magento版本:1.7.0.2我当前正在运行PHP 5.3.29,考虑到最近的安全补丁更新建议使用PHP 5.4及更高版本。

My question: How to safety upgrade PHP version? 我的问题:如何安全升级PHP版本? Is there a chance of website crash and extension incompatibility? 网站崩溃和扩展名不兼容的机会吗?

My question: How to safety upgrade PHP version? 我的问题:如何安全升级PHP版本? Is there a chance of website crash and extension incompatibility? 网站崩溃和扩展名不兼容的机会吗?

Yes, there's a chance that your system contains code that works in PHP 5.3, but won't work in PHP 5.4. 是的,您的系统有可能包含可在PHP 5.3中使用但在PHP 5.4中无法使用的代码。

You safely upgrade by 您可以安全地升级

  1. Creating a test server and installing PHP 5.4 创建测试服务器并安装PHP 5.4
  2. Transferring your code to that test system, via a source control repository 通过源代码控制存储库将代码传输到该测试系统
  3. Test you checkout flow and important business workflows 测试您的结帐流程和重要的业务工作流程
  4. Fix any bugs 修复所有错误
  5. Once you have a working code base, setup another test server and develop an automated deployment process 一旦有了有效的代码库,就可以设置另一台测试服务器并开发自动部署过程
  6. Fix bugs in your deployment process 修复部署过程中的错误
  7. Once you have a smooth deployment process, upgrade PHP 5.4 on your actual server, and deploy your Magento system to that server. 顺利进行部署后,请在实际服务器上升级PHP 5.4,然后将Magento系统部署到该服务器上。

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

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