Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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/libphp5.so

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
add comment

Your Answer

 
discard

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.