Thanks Celestial517 but that can't work because to use localhost you need to be connected to a network. Either local network or Internet, this does not include Edge. The benefit of using 127.0.0.1 is you can use it anywhere when you're on the go. But for me 127.0.0.1 only works when I'm connected to a network.
I am trying XOGEN's method and I created the directory to match his "lighttpd.conf" doc, but I get a 404 error, file not found. I tried both localhost and 127.0.0.1. I also tried to use a different directory and modified the "lighttpd.conf" file accordingly, but still getting the same error. I am using an iPodTouch, 1st Gen and 2.1 software that has been jailbroken. Any ideas?
I started to think of the time back in 1.1.4 when I had apache with PHP running and decided to look around to find out if it was still possible to run a webserver with PHP.
Using the work here I made some updates and found this as a way to get what I want. (I assume everyone has knowledge of SSH if not pm me and I will try to help)
First go to Cydia and Download and Install "lighttpd", "PHP: Hypertext Preprocessor", and "BossPrefs"
Sources:
"lighttpd" and "php" is from Saurik Repo - "http://apt.saurik.com/"
"BossPrefs" is from Bigboss reop - "http://apt.bigboss.us.com/repofiles/cydia/"
Once All is downloaded you need to create a configuration file, a launchdaemon, and a startup/shutdown service in bigboss to turn on and off.
Step 1: Configuration File
Connect to SSH and create directory
/usr/etc
Upload lighttpd.conf with premissions (wheel:root 777)
For those of you out there that have made lighttpd conf files in the past this line is what allowed me to use PHP
(see below which allowed for the PHP)
"
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))
"
IF you are like me and want to only start the webserver when you want by using bosspref, then put the above file into directory
/Applications/BossPrefs.app/scripts
file should have permissions (wheel:root 644)
Anyone know why when I go to http://127.0.0.1 on my iTouch, I get "404 - Not Found" but when I go to http://my-iTouchs-ip from my Macbook it works fine and shows me my index.html file?
Last edited by lightmaster; 03-14-2009 at 09:07 PM.
"In computer networking, a Media Access Control address (MAC address) is a unique identifier assigned to most network adapters or network interface cards (NICs) by the manufacturer for identification, and used in the Media Access Control protocol sub-layer." (1)
"The Macintosh, or Mac, is a series of several lines of personal computers designed, developed, and marketed by Apple Inc." (2)