Windows 7:带有 PHP 和 PHP 的 IIS 7.5 MySQL 或 Apache 带 PHP 和 PHP MySQL?
我刚刚给自己买了一台新笔记本电脑,它在 Windows 7 上运行,我正在考虑要设置什么开发环境。
我一生中的大部分时间都在 Windows 机器上使用 wamp 设置来实现本地开发环境。这里我最近安装了IIS,看起来很方便设置网站等等。
所以我正在考虑安装php和mysql并通过IIS运行本地开发环境。问题是因为我对 IIS 相当陌生。在本地开发环境中通过 IIS 运行 php/mysql 是否有任何缺点?我的限制是什么,运行 php/mysql 是否会产生任何限制(如果有的话),这会阻碍开发并可能影响部署。
有一天,我接触过 ISS,服务器上运行着 php,那是很久以前的事了,但是 php 没有得到完全支持,并且出现了一些开发问题。
谢谢大家的意见。非常赞赏。
I just got my self a new laptop, it runs on windows 7 and i am in deliberation what dev environment to set up.
I have most of my life used wamp set up, on windows machines for local dev environments. Here i recently installed IIS and it looks very convenient to set up sites and so on and so forth.
So I am thinking of installing php and mysql and runing local dev environment via IIS. The question is as I am fairly new to IIS. Are there any draw backs to running php/mysql via IIS in local dev environment. What are my limitations, will running php/mysql create any limitations if any that will hinder development and might effect deployment.
Back in a day i had some exposure to ISS with php running on server, it was long time ago, but php was not completely supported and some dev issues arose.
Thank you guys for any input. Greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您可以使用相同的环境进行开发和生产,通常会带来好处。所以问题是:
Usually it is a benefit if you can use identical environments for development and production. So the question is:
我个人认为windows上的apache还是开发PHP比较好的解决方案。原因:
我尝试安装我将部署到的相同 PHP 和 Apache 版本,所以出现差异的可能性微乎其微...
I personally believe that apache on windows is still a better solution to develop PHP. Reasons:
I try to install the same PHP and Apache versions I will be deploying to, so the chances to have differences is minimal...
我会选择 Apache - 主要是为了 .htaccess 功能 - 重写等在 IIS 中稍微棘手一些,并且在转移到 LAMP 设置时可能无法获得那么好的可移植性。
I would go for Apache - mainly for the .htaccess functions - rewriting etc are slightly more tricky in IIS and you may not get as great portability when transfering to a LAMP setup.