User Tag List

  1. timbo's Avatar
    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.
    2007-08-18 03:44 AM
  2. XFaega's Avatar
    How did you get apache - perl - ruby - and - python to run? I can't find them to run them.

    Thanks
    2007-08-18 03:51 AM
  3. lostphone's Avatar
    use the auto installer.
    2007-08-18 03:59 AM
  4. timbo's Avatar
    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
    2007-08-18 04:00 AM
  5. XFaega's Avatar
    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
    2007-08-18 04:05 AM
  6. Kyle Matthews's Avatar
    Freakin iPhone. Ruby Perl etc have been out for a bit, very cool stuff.
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-18 04:34 AM
  7. Bviper's Avatar
    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.
    2007-08-18 05:49 AM
  8. Stealth1029's Avatar
    How do you use python? It installs it, but I haven't the slightest clue on how to use it.

    Thanks in advance!
    2007-08-18 08:45 AM
  9. timbo's Avatar
    python is a scripting language.
    2007-08-18 09:36 AM
  10. lifesmymachine's Avatar
    i assume you are ysing your phone on your home network, otherwise you couldnt get calls as edge would always be active?
    2007-08-18 10:35 AM
  11. adseguy's Avatar
    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
    2007-08-19 03:04 AM
  12. supersocialist's Avatar
    It's actually very useful for serving pdf files and locally-stored web pages to safari. I wish it worked better.
    2007-10-02 05:16 AM
  13. aziatiklover's Avatar
    I need to try it
     Think Different
    2007-10-02 05:19 AM
  14. Tinman's Avatar
    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
    2007-10-02 07:02 PM
  15. musicpenguy's Avatar
    Explain how this works? Can you be offline with info stored locally?
    2007-10-03 06:15 AM
  16. Tinman's Avatar
    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; 2007-10-03 at 05:46 PM.
    2007-10-03 05:41 PM
  17. musicpenguy's Avatar
    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; 2007-10-04 at 01:19 AM.
    2007-10-03 11:40 PM
  18. Tinman's Avatar
    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
    2007-10-04 09:32 AM
  19. musicpenguy's Avatar
    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
    2007-10-04 01:19 PM
  20. Tinman's Avatar
    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
    2007-10-04 03:32 PM
49 123
LINK TO POST COPIED TO CLIPBOARD