dongluojiao6322 2011-07-12 09:57
浏览 40
已采纳

Mac 10.6.8上的默认Apache,PHP和MySql

May I know which Apache, PHP and MySql I am running if I decided to used other server solution/ packages (such as MAMP) than the one preinstalled on my Mac? If It possible to have multiple Apache, PHP and MySql running at the same time? Or would it be better if I just remove all the Apple's default installation?

Currently I have Apache (2.2.17), PHP (5.3.4) preinstalled on my Mac OS X 10.6.8. I don't see if I have any Mysql installed. May I know how to make connection to between Apache, PHP and mySql. I know there are connected through "socket" but how am I connect them If I have multiple version of the same thing installed?

Sorry for the long questions.

Thanks & Regards, Jeno

  • 写回答

1条回答 默认 最新

  • douzhang5295 2011-07-12 10:13
    关注

    You can run multiple installs of Apache as long as each listens on different ports. You can run multiple MySQL installs as long as each listens on different ports & sockets and has a different data directory. You can even run the same install of either as multiple server instances; there's no real difference between the two scenarios.

    Don't remove Apple's install of Apache or PHP. Instead, disable (or, in the case of Apache, don't enable) them.

    MySQL isn't part of the default system software.

    Apache generally doesn't interact with MySQL. PHP itself also doesn't interact with MySQL; it's PHP scripts that do, and that's a matter of using the correct connection information when the script creates the connection (e.g. when creating a PDO object). If there are multiple SQL servers running, simply use the appropriate port number or socket path.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测