+ Reply
Page 1 of 3 123 LastLast
Results 1 to 20 of 49

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Apache on iPhone - How Cool!!

is a discussion within the

Native iPhone / iPod Touch App Launches

forums, a part of the

3rd 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.
...
  1. #1
    iPhone? More like MyPhone timbo's Avatar
    Join Date
    Jul 2007
    Location
    Pittsburg, California, United States
    Posts
    240
    Thanks
    19
    Thanked 12 Times in 12 Posts

    Default 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.

  2. #2
    iPhoneaholic XFaega's Avatar
    Join Date
    Jul 2007
    Location
    SomeWhereHere
    Posts
    452
    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

  3. #3
    What's Jailbreak?
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    use the auto installer.

  4. #4
    iPhone? More like MyPhone timbo's Avatar
    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

  5. #5
    iPhoneaholic XFaega's Avatar
    Join Date
    Jul 2007
    Location
    SomeWhereHere
    Posts
    452
    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

  6. #6
    Owner / Founder - ModMyi
    aka poetic_folly
    Kyle Matthews's Avatar
    Join Date
    May 2007
    Location
    Tampa, Florida, United States
    Posts
    8,475
    Thanks
    569
    Thanked 4,799 Times in 1,223 Posts

    Freakin iPhone. Ruby Perl etc have been out for a bit, very cool stuff.
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews

  7. #7
    What's Jailbreak?
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  8. #8
    iPhone? More like MyPhone Stealth1029's Avatar
    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!

  9. #9
    iPhone? More like MyPhone timbo's Avatar
    Join Date
    Jul 2007
    Location
    Pittsburg, California, United States
    Posts
    240
    Thanks
    19
    Thanked 12 Times in 12 Posts

    python is a scripting language.

  10. #10
    My iPhone is a Part of Me lifesmymachine's Avatar
    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?

  11. #11
    What's Jailbreak? adseguy's Avatar
    Join Date
    Jul 2007
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post
    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

  12. #12
    What's Jailbreak? supersocialist's Avatar
    Join Date
    Sep 2007
    Posts
    23
    Thanks
    0
    Thanked 3 Times in 2 Posts

    It's actually very useful for serving pdf files and locally-stored web pages to safari. I wish it worked better.

  13. #13
    Livin the iPhone Life aziatiklover's Avatar
    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

  14. #14
    Green Apple
    Join Date
    Aug 2007
    Posts
    85
    Thanks
    13
    Thanked 11 Times in 10 Posts

    Quote Originally Posted by supersocialist View Post
    It's actually very useful for serving pdf files and locally-stored web pages to safari. I wish it worked better.
    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

  15. #15
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Posts
    124
    Thanks
    2
    Thanked 7 Times in 7 Posts

    Explain how this works? Can you be offline with info stored locally?

  16. #16
    Green Apple
    Join Date
    Aug 2007
    Posts
    85
    Thanks
    13
    Thanked 11 Times in 10 Posts

    Quote Originally Posted by musicpenguy View Post
    Explain how this works? Can you be offline with info stored locally?
    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.




    --
    Mike
    Last edited by Tinman; 10-03-2007 at 10:46 AM.

  17. #17
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Posts
    124
    Thanks
    2
    Thanked 7 Times in 7 Posts

    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 Again
    Last edited by musicpenguy; 10-03-2007 at 06:19 PM.

  18. #18
    Green Apple
    Join Date
    Aug 2007
    Posts
    85
    Thanks
    13
    Thanked 11 Times in 10 Posts

    Quote Originally Posted by musicpenguy View Post
    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 Again
    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

  19. #19
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Posts
    124
    Thanks
    2
    Thanked 7 Times in 7 Posts

    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

  20. #20
    Green Apple
    Join Date
    Aug 2007
    Posts
    85
    Thanks
    13
    Thanked 11 Times in 10 Posts

    Quote Originally Posted by musicpenguy View Post
    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
    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

  21. The Following User Says Thank You to Tinman For This Useful Post:

    Dash-2 (10-04-2007)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts