Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently using mamp instead of web sharing and I'm trying to figure out the best approach to share php and mysql web application that I'm working on to clients. What is the best way to do this?

share|improve this question
up vote 1 down vote accepted

I personally prefer using Web Sharing and installing only MySQL Server, just to stick with the Mac OS X Apache setup.

Web sharing has support for PHP, all you need to do is remove the comment (#) from the following line of the file /etc/apache2/httpd.conf:

#LoadModule php5_module      libexec/apache2/libphp5.

So it becomes:

LoadModule php5_module      libexec/apache2/

The PHP module includes MySQL support, so you just need to install the MySQL Server, turn it on and then you are ready to go.

After turning Web Sharing on, put your .php files inside your personal Site folder, and access it on your browser using the address informed on the Web Sharing activation screen, inside Settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.