Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Apache on iPhone - How Cool!!
08-17-2007, 09:44 PM #1
Apache on iPhone - How Cool!!
I have apache running and hosting a web site on my iPhone.
How cool is that.
thanks the the great peeps behind installer.app, I also have perl, ruby and python.
08-17-2007, 09:51 PM #2
How did you get apache - perl - ruby - and - python to run? I can't find them to run them.
08-17-2007, 09:59 PM #3
use the auto installer.
08-17-2007, 10:00 PM #4
08-17-2007, 10:05 PM #5
I installed ruby from the installer.app but no icons or anything that showed it was installed beside on the installer.app list. I'll give it a try.
08-17-2007, 10:34 PM #6
Freakin iPhone. Ruby Perl etc have been out for a bit, very cool stuff..
↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
08-17-2007, 11:49 PM #7
Now if only we could get some sort of Dynamic DNS update and you could run a full fledged web server with a working domain. I think At&t ain't gonna be happy about this.
08-18-2007, 02:45 AM #8
How do you use python? It installs it, but I haven't the slightest clue on how to use it.
Thanks in advance!
08-18-2007, 03:36 AM #9
python is a scripting language.
08-18-2007, 04:35 AM #10
i assume you are ysing your phone on your home network, otherwise you couldnt get calls as edge would always be active?
08-18-2007, 09:04 PM #11
I saw that Apache app in the installer. I guess it's cool, but we all know that is the most pointless thing ever. Admin access to a remote apache server would be way faster, useful, and wouldn't jam up your EDGE nor WiFi.
Really pointless IMO, but good proof of concept
10-01-2007, 11:16 PM #12
It's actually very useful for serving pdf files and locally-stored web pages to safari. I wish it worked better.
10-01-2007, 11:19 PM #13
I need to try it Think Different
10-02-2007, 01:02 PM #14
I keep, for instance, many PDFs that I need to reference on the iPhone. Right now I access them by name (
And if I do need access from a PC on the same WLAN I'll use it the same way.
But the bottom line is that it doesn't have to be used as one might think--and having it is a nice option to have around.
10-03-2007, 12:15 AM #15
Explain how this works? Can you be offline with info stored locally?
10-03-2007, 11:41 AM #16
Content is stored in:
I renamed index.html (created by default during Apache's install) so that a Web page is not displayed. Instead I get a list of files, and can tap whatever I want to open:
It works fine in Airplane Mode too, but I used SSH to snap the screenshot and needed WiFi.
Last edited by Tinman; 10-03-2007 at 11:46 AM.
10-03-2007, 05:40 PM #17
I still don't get it I have added files to that folder and still get the default page, can you do a step by step for a non web savy person.
Edit: I got it to look like above but with Airplane mode turned on it errors out: since there is no IP (Error: Could not connect to server) any advice??
Last edited by musicpenguy; 10-03-2007 at 07:19 PM.
10-04-2007, 03:32 AM #18
Here's a screenshot showing the iPhone user guide PDF open on my iPhone, when the phone was in airplane mode (not that the only reason I did this was for airplane mode--it wasn't, I just wanted local storage and access to PDFs and Office docs without needing to download anything):
10-04-2007, 07:19 AM #19
Well: since there is no IP when you have no wifi - how would you connect to a server? You can not connect to a localhost.
So a stepbystep would be helpful
Thanks in Advance
10-04-2007, 09:32 AM #20
But in any case here is a quick how-to that I posted on another forum:
1.) Install Apache on the iPhone.
2.) On the iPhone rename index.html to something else (like indexOrg.html). The file is located here:
3.) Copy any PDFs, images, or Office docs to the folder listed above.
4.) In Safari, on the iPhone itself, type in this URL:
5.) This will show a list of files that you copied in step 3. Tap a filename to open it!
For reference I also have the BSD subsystem, Erica's Utilities, and OpenSSH installed as well.
The Following User Says Thank You to Tinman For This Useful Post: