复制“生产/现场”服务器(wamp)
我正在我的设备上运行 wamp 测试/开发服务器,但是我试图确保它复制生产服务器的正常行为。上次我从测试环境转移到实时环境时,遇到了以下问题:
- 区分大小写的相对路径在实时服务器上令人讨厌
- 区分大小写的 MySQL 命令在实时服务器上令人讨厌
- 我发送的一些标头请求(好吧,这很尴尬) )在“视图”中间显然没有被接受。
我通过禁用 ini 文件中的 output_buffer 在测试服务器上复制了错误号 3 的行为。
然而,我还没有弄清楚如何让我的测试服务器对区分大小写的路径和 sql 命令敏感。
有人可以帮我吗?另外,请指出我应该在 ini 文件中启用/禁用的其他设置,以确保它像实时服务器一样运行。
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. Last time I moved from a test environment to a live one I had the following issues:
- Case sensitive relative paths were being obnoxious on the live server
- Case sensitive MySQL commands were being obnoxious on the live server
- Some header requests I sent (okay this is embarrassing) in the middle of a 'view' were obviously not getting accepted.
I replicated the behavior of error number 3 on my test server by disabling output_buffer in the ini file.
However, I haven't quiet figured out how to make my test server all touchy about case sensitive paths and sql commands.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题在于您的实时服务器是非 Windows 服务器,而您的测试服务器是 Windows 服务器。 PHP 是依靠系统来查找文件的。 Windows 文件/路径不区分大小写。
对于其他一切,您可能会使用不同版本的 MySQL 等等。
如果您想要进行可靠的测试,可以直接上传到实时服务器,也可以复制服务器并在虚拟机中运行,例如 VMWare,在您的开发计算机上。
The trouble is that your live server is a non-Windows server, and your test server is a Windows server. PHP is relying on the system to find files. Windows files/paths are not case sensitive.
For everything else, you are likely using different versions of MySQL and what not.
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.