Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Apache on iPhone - How Cool!!
is a discussion within theNative iPhone / iPod Touch App Launches
forums, a part of the3rd Party Apps For iPhone | iPod Touch
section;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, 08:44 PM #1iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Pittsburg, California, United States
- Posts
- 240
- Thanks
- 19
- Thanked 12 Times in 12 Posts
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, 08:51 PM #2iPhoneaholic
- Join Date
- Jul 2007
- Location
- SomeWhereHere
- Posts
- 451
- Thanks
- 8
- Thanked 29 Times in 23 Posts
How did you get apache - perl - ruby - and - python to run? I can't find them to run them.
Thanks
-
08-17-2007, 08:59 PM #3
use the auto installer.
-
08-17-2007, 09:00 PM #4iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Pittsburg, California, United States
- Posts
- 240
- Thanks
- 19
- Thanked 12 Times in 12 Posts
First ssh installer.app on to you iPhone.
After that you may have to update the community sources a few time. After that Perl, Ruby, Python, and Apache should be in the install list
Check out iShapeShifter to install themes from installer.app
-
08-17-2007, 09:05 PM #5iPhoneaholic
- Join Date
- Jul 2007
- Location
- SomeWhereHere
- Posts
- 451
- Thanks
- 8
- Thanked 29 Times in 23 Posts
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.
Thanks
-
08-17-2007, 09:34 PM #6Owner / Founder - ModMyi
aka poetic_folly
- Join Date
- May 2007
- Location
- Tampa, Florida, United States
- Posts
- 8,351
- Thanks
- 529
- Thanked 4,565 Times in 1,158 Posts
Freakin iPhone. Ruby Perl etc have been out for a bit, very cool stuff.
-
08-17-2007, 10: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, 01:45 AM #8iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Miami, FL
- Posts
- 275
- Thanks
- 3
- Thanked 43 Times in 23 Posts
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, 02:36 AM #9iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Pittsburg, California, United States
- Posts
- 240
- Thanks
- 19
- Thanked 12 Times in 12 Posts
python is a scripting language.
-
08-18-2007, 03:35 AM #10My iPhone is a Part of Me
- Join Date
- Aug 2007
- Location
- Los Angeles
- Posts
- 529
- Thanks
- 3
- Thanked 51 Times in 41 Posts
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, 08: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, 10: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, 10:19 PM #13Livin the iPhone Life
- Join Date
- Sep 2007
- Location
- Welcome to Jamrock
- Posts
- 1,337
- Thanks
- 37
- Thanked 62 Times in 61 Posts
I need to try it
Think Different

-
10-02-2007, 12:02 PM #14
Bingo, that's primarily what I use it for. Most times Apache isn't even loaded (UIctl load/unload -w).
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.
--
Mike
-
10-02-2007, 11:15 PM #15
Explain how this works? Can you be offline with info stored locally?
-
10-03-2007, 10:41 AM #16
Yes, you can be offline and still access your content locally.
Content is stored in:
/Library/WebServer/Documents
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.
--
MikeLast edited by Tinman; 10-03-2007 at 10:46 AM.
-
10-03-2007, 04: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.
Thanks!
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??
Thanks AgainLast edited by musicpenguy; 10-03-2007 at 06:19 PM.
-
10-04-2007, 02:32 AM #18
I am not sure why you are getting the "could not connect" error, because I do not see that. I get an error when starting Safari--when in airplane mode--that I "must" (yea right) disable airplane mode, but I just tap Cancel to get rid of the message.
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):

--
Mike
-
10-04-2007, 06: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, 08:32 AM #20
It sounds like you already have it all installed, though, since you said you were able to bring up the page served by Apache. As for IP I used the usual localhost IP of 127.0.0.1.
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:
/Library/WebServer/Documents
3.) Copy any PDFs, images, or Office docs to the folder listed above.
4.) In Safari, on the iPhone itself, type in this URL:
http://127.0.0.1
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.
--
Mike
-
The Following User Says Thank You to Tinman For This Useful Post:
Dash-2 (10-04-2007)




LinkBack URL
About LinkBacks

Reply With Quote

