VMWare Workstation 与 Zend Studio 集成

发布于 2024-12-02 17:11:25 字数 409 浏览 1 评论 0原文

我一直在尝试弄清楚是否值得为 VMware Workstation 付费,并在部署 PHP 应用程序之前使用 VM 来测试和调试它们。我在 Windows 上开发,过去在部署到 Linux 时遇到问题。我已经下载并安装了 VMWare Workstation 的试用版,并安装了一个运行着 Zend Server 的来宾 Ubuntu。我已经在来宾中安装了 VMware 工具,并且可以从主机操作系统中的浏览器成功访问 Zend Server。我已经完成了 Zend Studio 中为测试文件设置运行和调试设置的所有步骤,包括为项目的代码文件设置映射。但是,每次我尝试从 Zend Studio 在 VM 中运行 PHP 文件时,我都会从服务器收到 404 错误。我没有部署到虚拟机,但 Zend Studio 应该通过根据需要发送文件来为我处理所有这些事情。有人让这个集成工作吗?我错过了任何步骤吗?

I've been trying to work out if it's worth paying for VMware Workstation and to use VM's for testing and debugging my PHP applications before deploying them. I develop on Windows and have problems when deploying to Linux in the past. I've downloaded and installed the trial for VMWare Workstation and have installed a guest Ubuntu with Zend Server running in it. I've installed the VMware tools in the guest and can successfully access Zend Server from a browser in the host OS. I've been through all of the steps in Zend Studio to set up the run and debug settings for a test file including setting up the mapping for the code files for the project. However, every time I try to run a PHP file in the VM from Zend Studio I get a 404 error from the server. I'm not deploying to the VM but Zend Studio is supposed to take care of all of that for me by just sending the files as needed. Has anyone got this integration to work and have I missed any steps?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡忘如思 2024-12-09 17:11:25

我认为 VMWare 有一个免费版本,但如果没有,您可以随时尝试虚拟盒。

我有一台运行 ubuntu 的电脑,我在那里进行所有编程(主要是 php),但我的笔记本电脑上也有一些虚拟机。

I think VMWare has a free version but if not you can always try virtual box.

I have a pc running ubuntu and that's where I do all my programming (mostly php) but I also have some virtual machines on my laptop.

音栖息无 2024-12-09 17:11:25

在朋友的帮助下我终于解决了这个问题。 Zend Studio 文档中隐藏着一个关于创建您自己的虚拟设备以在 VM 中进行测试的部分。重要的一步是,创建虚拟机后,我需要将 Web 服务器文档根目录从 /var/www 更改为 /mnt/hgfs。这意味着从主机操作系统发布到来宾操作系统的任何文件都会出现在服务器的文档根目录中,因此可以找到。故事的寓意对我来说:始终是 RTM,即使所需的信息被隐藏了......

感谢您对此的帮助和建议。

I worked this out finally with some help from a friend. Buried deep in the Zend Studio documentation is a section on creating your own Virtual Appliance for testing in a VM. The vital step was that once the VM is created I needed to change the web servers document root from /var/www to /mnt/hgfs. This means that any files that are published from the host OS to the guest OS appear in the document root of the server and can therefore be found. Moral of story for me: always RTM, even if the info needed is buried...

Thanks for the help and suggestions on this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文