well sir from the sound of it, you've got a bit more experience than i've got in the whole endeavor. i would like to ask a favor. ill compile all my instructions in this thread into the first post, would you mind taking a look at it, ya know in case im missing something or going about it in a roundabout way
Some problems or different directions I took then the instructions you showed.
I can say, that I originally tried to install openwrt via the web browser, but I always got a status return of -2. I couldn't figure out what that status meant, but the firmware didn't take. So I did the more direct commands to update like this tutorial shows.
http://www.coyne.nu/blog/2016/01/31/installing-openwrt-on-the-zsun-wifi-card-reader-from-windows/
Writing to the mtd2 resulting in an out of memory error, and I for sure thought I bricked the device. But it did boot up with openwrt :-)
How to setup the szun to be a client and AP. This is so you can get php installed and any other packages you want:
https://wiki.openwrt.org/doc/recipes/ap_sta
When setting up the sta client. My main network is WPA2
which results in:
option encryption psk2
WPA by itself is just psk
After you get internet access install php with these commands
opkg update
opkg list php*
opkg install php5 php5-cgi
Then add this into the uhttpd file in the /etc/config section.
list interpreter '.php=/usr/bin/php-cgi'
After you verify php is good, revert the changes you made in
https://wiki.openwrt.org/doc/recipes/ap_sta
I did mess around with the zsun alot before I put openwrt on. The device itself already supports php by default. There are actually two webservers running. I tftp'd the files needed for the exploit across for lighthttp, but the device was inconsistent in serving the files. Openwrt has made things much more reliable.
Do i need internet connection for this?
After the device is setup, no you do not need internet access