简体   繁体   English

复制“生产/实时”服务器(wamp)

[英]Replicating a 'production/live' server (wamp)

I am running a wamp test/development server on my rig, however I am trying to ensure it replicates the normal behavior of a production server.我在我的装备上运行 wamp 测试/开发服务器,但是我试图确保它复制生产服务器的正常行为。 Last time I moved from a test environment to a live one I had the following issues:上次我从测试环境转移到实时环境时,我遇到了以下问题:

  1. Case sensitive relative paths were being obnoxious on the live server区分大小写的相对路径在实时服务器上令人讨厌
  2. Case sensitive MySQL commands were being obnoxious on the live server区分大小写的 MySQL 命令在实时服务器上令人讨厌
  3. Some header requests I sent (okay this is embarrassing) in the middle of a 'view' were obviously not getting accepted.我在“视图”中间发送的一些 header 请求(好吧,这很尴尬)显然没有被接受。

I replicated the behavior of error number 3 on my test server by disabling output_buffer in the ini file.我通过禁用 ini 文件中的 output_buffer 在我的测试服务器上复制了错误号 3 的行为。

However, I haven't quiet figured out how to make my test server all touchy about case sensitive paths and sql commands.但是,我还没有弄清楚如何让我的测试服务器对区分大小写的路径和 sql 命令都敏感。

Could someone help me out?有人可以帮我吗? Also, please point out the other settings I should enable/disable in the ini file to ensure it acts like a live server.另外,请指出我应该在 ini 文件中启用/禁用的其他设置,以确保它像实时服务器一样工作。

The trouble is that your live server is a non-Windows server, and your test server is a Windows server.问题是您的实时服务器是非 Windows 服务器,而您的测试服务器是 Windows 服务器。 PHP is relying on the system to find files. PHP 是靠系统找文件的。 Windows files/paths are not case sensitive. Windows 文件/路径不区分大小写。

For everything else, you are likely using different versions of MySQL and what not.对于其他一切,您可能使用不同版本的 MySQL 等等。

If you want a solid test, either upload directly to your live server, or duplicate the server and run it in a virtual machine, such as VMWare , on your dev computer.如果您想要一个可靠的测试,可以直接上传到您的实时服务器,或者复制该服务器并在您的开发计算机上的虚拟机(例如VMWare )中运行它。

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

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