Featured Post

Twitter Updates for 2008-04-12

I think I know how to do the flex labels using but then one needs to adjust the height attribute # @cfchris how’d it go? Are the streets of portland still safe :-; # checking out Joost again, if I could could figure out the isp side of things I could dump Comcast and be happy. # @cfchris...

Read More

Follow @dougrdotnet on Twitter

How To Set Up a Local Web Server on Your Mac Using MAMP

Posted by dougr | Posted in Apache, Mac, MySQL, PHP | Posted on 19-07-2009

Tags: , , , , , ,

0

MAMP, which is an acronym for Mac Apache MySQL PHP, is an application which sets up a local Web server development environment in a matter of minutes.  It includes support for all of the servers listed as part of its name (support for SQLite is also included).

MAMP provides three basic necessities for any Web application; being a Web server, a database server, and a Web application server – Apache, MySQL, and PHP respectively.  Although Apple ships Mac computers with these three servers pre-installed, setup and configuration is not abstracted into a configuration interface as provided by MAMP.

MAMP installation is simple, lets go through the process together.

See the rest of my article on Lost In Technology.

Quick Reference – Using emacs to Edit Apache httpd.conf and the host file

Posted by dougr | Posted in Apache, emacs | Posted on 23-09-2007

Tags: , ,

3

Right to the point on this one:

Change directory to parent of httpd.conf (from root cd /)

cd /etc/httpd/

Open httpd.conf in emacs with write permission:

sudo -P emacs httpd.conf

The -P switch prompts for password allowing write permissions.

When editing is complete use the following to save and exit emacs – back to terminal (C=<ctrl>).

C-x C-c

Following the prompts located at the bottom of emacs – save the file.

Use the same procedure to open hosts (found in /etc relative to /).

sudo -P emacs hosts

From within hosts we can set up vhosts.
Anytime we make changes to the Apache Config file we must restart the Apache server:

sudo apchectl graceful

This provides a “graceful” restart of the server.
Done!