Senior Mitglied
Lösungsweg: Webserver mit PHP installieren
Hi,
ich hab jetzt einige Stunden probiert einen Webserver mit PHP zum laufen zu bekommen.
Hier mein Lösungsweg:
1. Über Cydia "lighttpd SB Settings Toggle" installieren.
2. Per SSH auf das iPhone und über "apt-get install php" oder "aptitude install php" PHP5 installieren
3. Per SSH auf das iPhone und folgende Eingaben durchführen
mkdir /var/log/lighttpd
mkdir /var/www
mkdir /var/run/lighttpd
touch /var/run/lighttpd/php-fastcgi.socket-0
chmod 777 /var/run/lighttpd/php-fastcgi.socket-0
4. Erstellen der lighttpd.conf die dann in /etc abgelegt wird.
lighttpd.conf Achtung: Bei den Configs die man so im Internet findet stimmt der PHP Pfad nicht. Code:
server.document-root = "/var/www/"
server.port = 80 # Default
server.modules = ( "mod_cgi","mod_indexfile","mod_dirlisting", "mod_accesslog" )
server.tag = "iPhone lighttpd"
server.name = "Aiode.webearth.org"
server.pid-file = "/var/run/lighttpd.pid"
dir-listing.activate = "enable"
dir-listing.external-css = "/.dirlist/iphonedirlist.css"
accesslog.filename = "/var/log/lighttpd/access.log"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.py", "index.pl", "index.cgi", "index.html", "default.html", "/.dirlist/dir-generator.py" )
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" => "", ".php" => "/usr/bin/php-cgi" )
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",
) 5. Den Webserver-Dienst jetzt starten mit "lighttpd -f /etc/lighttpd.conf"
größten Teils von Lighttpd mit PHP Funktion auf dem iPhone als WebserverbyVista TuneUp Blog kopiert.
PS: Irgendwie geht bei mir
Lösungsweg: Webserver mit PHP installieren Ähnliche Themen zu Lösungsweg: Webserver mit PHP installieren Siemens SX1 SDS und Bluetooth Tutorial: Update 2005-10-22: Siemens-Downloadlinks durch BenQ ersetzt, toten Sendo-Link entfernt, aktualisiert: MSXML 3.0 SP7, neu: Abschnitt 8.14, mRouter 3.1...
Besucher kamen mit folgenden Begriffen auf die Seite:
f ,
lighthttpd iphone php script ,
webserver iphone ,
iPhone lighttpd ,
php auf iphone installieren ,
cydia lighttpd configuration ,
iphone lighttpd config file ,
aptitude iphone ,
lighttpd cydia ,
lighttpd php cydia ,
installieren lighttpd php fastcgi ,
cydia lighttpd config ,
webserver for jailbreaked iphone 4 ,
apple iphone jailbreak server config ,
jailbreak ps3 würzburg ,
lighttpd sbsettings ,
forum auf apple webserver ,
lighttpd compile php5.3.3 fastcgi ,
m3u Nokia E7 ,
lighttpd servername ,
iphone jailbreak webserver ,
Lighttpd SBSettings Toggle php-cgi ,
cydia-lighttpd website ,
iphone web server install ,
lighttp sbsettings