The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone





 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple, iPhone & iPad Forums, Mods, Guides, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches
Reply
 
LinkBack (1) Thread Tools Display Modes
  #31  
Old 10-11-2007, 08:38 AM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

please post your css file, I cant CSS to save my life ;(

Quote:
Originally Posted by cazlar View Post
Sorry about replying to myself, but if anyone is interested in this, to turn on directory listings you need to edit the lighttpd.conf file (in /usr/local/etc/ IIRC) to add
Code:
dir-listing.activate = "enabled"
and also add
Code:
"mod_dirlisting"
in the module listing alongside the "mod_cgi" (separate with a comma).

Restart the phone (I guess you could just restart lighttpd if you wanted) and you can browse your pdfs :-)

Edit: And you could probably style the directory listing via CSS (there's an option to enable this) to get something that looked very pretty on the iPhone. I'm crappy at CSS though.
I tried this but it didnt work. I changed the file as stated above, put it back in the /usr/local/etc/ overrighting the original. I restart lighttpd go to 127.0.0.1 and get "server not found". when I restore the original lighttpd.conf file and restart lighttpd it works fine but no directory browsing obviously.

Heres my lighttpd.conf, any help is appriciated
Code:
server.document-root = "/private/var/root/Sites/"
# server.port = 80 # Default
#server.bind = "127.0.0.1" # Default: All
server.modules = ( "mod_cgi", "mod_dirlisting" )
server.tag = "iPhone lighttpd"

#server.pid-file            = "/var/run/lighttpd.pid"

accesslog.filename = "/var/log/lighttpd/access.log"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enabled"

index-file.names = ( "index.php", "index.py", "index.pl", "index.cgi", "index.html", "default.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".py" )

cgi.assign = ( ".pl"  => "/usr/bin/perl", ".py" => "/usr/bin/python", ".rb" => "/usr/local/bin/ruby", ".cgi" => "", ".sh" => "" )

mimetype.assign             = (
	".pdf"          =>      "application/pdf",
	".sig"          =>      "application/pgp-signature",
	".spl"          =>      "application/futuresplash",
	".class"        =>      "application/octet-stream",
	".ps"           =>      "application/postscript",
	".torrent"      =>      "application/x-bittorrent",
	".dvi"          =>      "application/x-dvi",
	".gz"           =>      "application/x-gzip",
	".pac"          =>      "application/x-ns-proxy-autoconfig",
	".swf"          =>      "application/x-shockwave-flash",
	".tar.gz"       =>      "application/x-tgz",
	".tgz"          =>      "application/x-tgz",
	".tar"          =>      "application/x-tar",
	".zip"          =>      "application/zip",
	".mp3"          =>      "audio/mpeg",
	".m3u"          =>      "audio/x-mpegurl",
	".wma"          =>      "audio/x-ms-wma",
	".wax"          =>      "audio/x-ms-wax",
	".ogg"          =>      "application/ogg",
	".wav"          =>      "audio/x-wav",
	".gif"          =>      "image/gif",
	".jpg"          =>      "image/jpeg",
	".jpeg"         =>      "image/jpeg",
	".png"          =>      "image/png",
	".xbm"          =>      "image/x-xbitmap",
	".xpm"          =>      "image/x-xpixmap",
	".xwd"          =>      "image/x-xwindowdump",
	".css"          =>      "text/css",
	".html"         =>      "text/html",
	".htm"          =>      "text/html",
	".js"           =>      "text/javascript",
	".asc"          =>      "text/plain",
	".c"            =>      "text/plain",
	".cpp"          =>      "text/plain",
	".log"          =>      "text/plain",
	".conf"         =>      "text/plain",
	".text"         =>      "text/plain",
	".txt"          =>      "text/plain",
	".dtd"          =>      "text/xml",
	".xml"          =>      "text/xml",
	".mpeg"         =>      "video/mpeg",
	".mpg"          =>      "video/mpeg",
	".mov"          =>      "video/quicktime",
	".qt"           =>      "video/quicktime",
	".avi"          =>      "video/x-msvideo",
	".asf"          =>      "video/x-ms-asf",
	".asx"          =>      "video/x-ms-asf",
	".wmv"          =>      "video/x-ms-wmv",
	".bz2"          =>      "application/x-bzip",
	".tbz"          =>      "application/x-bzip-compressed-tar",
	".tar.bz2"      =>      "application/x-bzip-compressed-tar",
	# default mime type
	""              =>      "application/octet-stream",
)

Last edited by shaiss; 10-11-2007 at 08:48 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote

Tag Cloud
  #32  
Old 10-11-2007, 08:49 AM
Green Apple
 
Join Date: Sep 2007
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
How to start and stop Apache?

I want the freedom to turn on and off my webserver.

In terminal I type apachectl -k stop and it says stop but then u open http://localhost or http://127.0.0.1 and its still running.

weird does anyone know?????
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #33  
Old 10-11-2007, 08:51 AM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

Quote:
Originally Posted by joejoe123 View Post
I want the freedom to turn on and off my webserver.

In terminal I type apachectl -k stop and it says stop but then u open http://localhost or http://127.0.0.1 and its still running.

weird does anyone know?????
I think you need to use the unload command. try using Erica Sudan's UIctrl
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #34  
Old 10-11-2007, 09:36 AM
Green Apple
 
Join Date: Sep 2007
Posts: 44
Thanks: 0
Thanked 10 Times in 7 Posts

Oops, just glancing at my conf file, it should read "enable", not "enabled". Sorry, I'll edit my earlier post, and also post my css when I get a chance today.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #35  
Old 10-11-2007, 10:04 AM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

would be nice if someone could make a css file or whatever so browsing the sites folder would feel like the iphone interface that the webapps use. that would be great!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #36  
Old 10-11-2007, 11:42 AM
Green Apple
 
Join Date: Sep 2007
Posts: 44
Thanks: 0
Thanked 10 Times in 7 Posts

Here's my current one. As I said, I suck at CSS too, so I'm sure it can get a LOT better in the hands of a real designer
Code:
a, a:active {text-decoration: none; color: blue;}
a:visited {color: #48468F;}
a:hover, a:focus {text-decoration: underline; color: red;}

h2 {display:none;}
table {margin-left: 10px;}
th, td { font: 20pt Helvetica; text-align: left;}
th { font-weight: bold; padding-right: 14px; padding-bottom: 3px;}
td {padding-right: 10px; border-top: 1px solid #d9d9d9;}
td.s, th.s {text-align: right;}
div.list { font-size:36pt; background-color: white; }
td.m { font-size:16pt;}
td.t { font-size:20pt;}
td.s { font-size:24pt;}
td.n { font-size:40pt; padding-top:12px; padding-bottom:12px; }
div.foot {dispay:none; font: 1pt monospace; color: #fff;}
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #37  
Old 10-11-2007, 12:02 PM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

cool, works for me, but yeah, I'm sure someone could do better
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #38  
Old 10-11-2007, 01:14 PM
What's Jailbreak?
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

How does the apache server affect the batterylife?
When I unload -w or stop with UIctl, it still works in safari. and I still see it running with top in terminal.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #39  
Old 10-12-2007, 03:52 PM
e-gold-casino's Avatar
Green Apple
 
Join Date: Sep 2007
Posts: 33
Thanks: 14
Thanked 1 Time in 1 Post

Excellent, everything working OK. I'd managed to arrange all my PDFs, Docs, local htmls.

CSS file definitely needs tuning.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #40  
Old 11-17-2007, 05:05 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Q

I install apache and then open to safari and type in the web address where I get a message from apache saying software successfully installed.

I then use mobile finder to navigate to library but there is no WebServer folder and I can't find any file called index.html

Am i supposed to create the webserver and documents folders manually?

any help appreciated

and apache doesn't show up in my list of applications even though it says installed. I presume it is supposed to?

Last edited by bobjames; 11-17-2007 at 05:05 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #41  
Old 12-14-2007, 11:48 AM
The Spirit's Avatar
iPhone? More like MyPhone
 
Join Date: Nov 2007
Device + Firmware: iPhone 3G 16 GB, 3.1 JB
Operating System: OSX 10.6.1 Leopard
Location: Germany
Posts: 288
Thanks: 6
Thanked 162 Times in 101 Posts

i have a pdf with around 12,5 mb. if i try to open it, safari tells me, that the "page is to big"
am i doing something wrong, or is safari really unable to open such large files?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #42  
Old 12-14-2007, 12:35 PM
Green Apple
 
Join Date: Aug 2007
Posts: 76
Thanks: 13
Thanked 11 Times in 10 Posts

Yea the limit is either 10 or 11 MB.

But if you got Apache to run you should be able to install PDFViewer as well. I've opened PDFs with it that were much larger than 11 MB (over 100 MB).

Only thing is PDFViewer looks in /var/root/Media/PDF so the PDFs need to be placed there.


--
Mike
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to Tinman For This Useful Post:
nunoosorio (01-24-2008)
  #43  
Old 01-21-2008, 07:17 AM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 6
Thanks: 16
Thanked 0 Times in 0 Posts

Hello,

When I try to install Apache on my iPhone `1.1.2`, it just closes down the installer once its done downloading :S

and when I try to install PHP, it says add a line $PATH.. and well I did that, but it still doesnt get installed since i cant run PHP command line.

EDIT:

I just noticed, that this happens not just with apache, when i install PXL too for example :S..

maybe it has something to do with my other post, the malformed mach-o file?

Last edited by DarkMindZ; 01-21-2008 at 07:56 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #44  
Old 01-24-2008, 06:08 AM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
[Python] can't install

I need urgent help!!

I was trying to install Python in the /usr/bin/python and with ibrick I deleted python.py. Now I cant install python, it give me a Error when tying to install from ibrick or other source.

Can anybody help me. I need python.

Thanks
nuno
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #45  
Old 03-06-2008, 04:54 AM
-V-O-Y-A-G-E-R-'s Avatar
Green Apple
 
Join Date: Dec 2007
Device + Firmware: black 16GB SIM-free iPhone 3G
Operating System: Latest OS X
Location: Serbia
Posts: 81
Thanks: 27
Thanked 30 Times in 6 Posts

PDF/CHM/DOC/XLS/photo viewer - all-in-one Safari/Lighttpd based (complete instruct.)

Click the image to open in full size.

Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple, iPhone & iPad Forums, Mods, Guides, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://modmyi.com/forums/native-iphone-ipod-touch-app-launches/2665-apache-iphone-how-cool.html
Posted By For Type Date
Apache on iPhone - ehMac.ca This thread Refback 07-14-2008 08:55 AM


Go to Top
ModMyI

All times are GMT -6. The time now is 05:00 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Owned and Operated by ModMy, LLC Copyright © 2007-10. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / iPad News / iPad Forums / Cydia Hosting /
RSS / Contact Us / / Top