我可以从同一个Apache实例LAMP和Rails? [英] Can I run LAMP and Rails from the same Apache instance?

查看:148
本文介绍了我可以从同一个Apache实例LAMP和Rails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有的Apache2,PHP5和MySQL 5对于我们的发展RedHat的箱子。现在,我们有一个Rails客户端,我们需要建立一个Rails应用程序在同一台服务器上。我们可以安装Ruby和Rails框架具有相同的Apache,还是应该避免这种情况?为什么或者为什么不?是否有可能直接子域要么PHP或Ruby在个别的V主机定义?

We have a RedHat box with Apache2, PHP5 and MySQL 5 for much of our development. Now, we have a Rails client, and we need to set up a Rails app on the same server. Can we install Ruby and the Rails framework with the same Apache, or should we avoid this? Why or Why not? Is it possible to direct subdomains to either PHP or Ruby in the individual V-host definitions?

推荐答案

是的,你可以配置你的虚拟主机的Rails,PHP或任何其他与正确的配置。细节在很大程度上取决于你如何连接到Rails的,但一般但将配置一个单一的目的Apache服务器应该为虚拟主机工作。

Yes, you can configure your virtual hosts to Rails, PHP, or anything else with the proper configuration. The details depend largely on how you are connecting to Rails, but generally however you would configure a single purpose Apache server should work for the virtual hosts.

这篇关于我可以从同一个Apache实例LAMP和Rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆