What is the easiest way to have a local LAMP installation for web development on mac OS X?

拟墨画扇 提交于 2019-12-20 06:14:46

问题


I'm new to mac os x. In the Windows XP world, there are packages available, like easyPHP, wampserver, uniformserver, that enable you to have a local webserver complete with php, mysql configured via an automatic installer. Really handy.

I need the same on my new mac. I know mac os x comes with a local webserver. Is this already with php, mysql preinstalled?

I'd like to have you guys advise on the easiest way to have this local lamp so that i can continue developing on this nice and shiny machine.

thanks!


回答1:


Question : What means LAMP ?

Answer : Linux Apache MySQL PHP

Q: and if this was running on a Mac ?

A : try MAMP




回答2:


XAMPP is also an excellent choice




回答3:


http://foundationphp.com/tutorials/php_leopard.php

http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html




回答4:


OS X comes with php and apache installed already. It doesn't have mysql installed by default, but you can easily download the Mac OS X version from the mysql website in either the tarball version or a package version.




回答5:


Mac OS X is -- essentially -- Linux.

Mac OS X already contains Apache. Turn on file sharing and you'll turn on Apache.

You'll need to download and install MySQL for Mac OS X. http://dev.mysql.com/downloads/mysql/5.1.html

You'll need to edit the httpd.conf to enable mod_apache.




回答6:


Five years later, i believe this question and existing answers still reading by some newcomers.

Personally, i strongly recommend using Homebrew to have a perfect development environment on mac os x. Not only PHP, homebrew opens wide all the doors to the open source toolkit/library/application heaven.

Here is my another answer related with this subject.



来源:https://stackoverflow.com/questions/714528/what-is-the-easiest-way-to-have-a-local-lamp-installation-for-web-development-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!