iAMPS. A webserver on your iPhone.

July 10th, 2008

Firstly a Disclaimer:

Messing with the file structure of your iPhone may render it inoperable, requiring you to reinstall it's operating system, which will delete all its content.

You should download the files (photos, Apps, etc) you don't want to lose to your computer.

I take no responsibility if you mess things up. You modify your iphone/ipod at your own risk. Just as I do with mine.

Having said that, getting Apache, MySQL and PHP5 running on your iPhone, isn't that difficult, just a little complicated.

Why would I want a webserver on my phone?

Well, If you're a web application developer like me, having a portable webserver could be handy. You could show off your work to people or work on your apps where ever you are.

If you're on a wifi network you could share your photos or even your music or videos with your friends. You could have a mobile blog. Possibilities are up to you, an you dont need to learn objective C or use apples iPhone SDK (which I cant use anyway since I don't have an intel Mac).

So here is a step by step list of how to turn your iPhone into a iAMP server. Note: I have only tried this on an iPhone (non 3G) running 1.1.4

Step 1: Unlock your iPhone

Step 2. Install Some Packages

Step 3. Some Security

Step 4. Install PHP

Step 5. Install MySQL

Step 6. Seeing if it all works

Conclusion