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)
Send big files the easy way. Files too large for email attachments? No problem!
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"
)))
"
Step 2: Launchdaemon
Download the following File - PLIST
Send big files the easy way. Files too large for email attachments? No problem!
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)
Step 3: BossPrefs
Download the following Files
Send big files the easy way. Files too large for email attachments? No problem!
Put the following above files into these locations
/Applications/BossPrefs.app/scripts
lighttpdoff.sh (wheel:root 775)
lighttpdon.sh (wheel:root 775)
/Applications/BossPrefs.app/services
Lighttpd (wheel:root 644)
TIme to test:
Here is a heads or tails php app i made.
Send big files the easy way. Files too large for email attachments? No problem!
Make Directory
/var/mobile/Sites
Put these Files in folder
Finally reboot, switch your BossPref to on, and then try out my php file in your new webserver.
Open Safari
type
http://127.0.0.1/heads_or_tails.php
For backup I put all files on another site
Free File Hosting Made Simple - MediaFire