How to turn your Mac into a dynamic, database-driven web server

Submitted by Richard Sheppard on Mon, 19/06/2006 - 19:13

stonehead28 (not verified)

Sun, 05/11/2006 - 12:31

thanks i have go the php al working

Anonymous (not verified)

Thu, 05/04/2007 - 02:52

is this for a local network or the world wide web? because i can only access it seems through my local network. When i asked my buddy to go to it, nothing came up.

Richard Sheppard

Thu, 05/04/2007 - 11:33

In reply to by Anonymous (not verified)


For your server to be accessible to the world, you'll need to do some other tasks, depending how your access to the internet is set up.

Are you connecting via a router of some sort? If so, many routers provide a way of forwarding web requests made to the router on it's public IP address to the Mac on your network.

I hope this helps.

Kind regards,


Richard Sheppard

Mon, 30/07/2007 - 03:46

Man you rock, but then how do you set up the database ?


Thank you! I guess I don't rock that hard though, as I've not updated this properly or made reference to the update on mySQL that I made a few days after my original posting.

I had some issues with different versions of mySQL, php and the mysqli extension. I've got a sort of kludgy way to work around it here. I hope this helps.

Add new comment

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd><p><img src alt height width><blockquote cite><h1><h2 id><h3 id><h4 id><h5 id><h6 id>
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.