Installing and configuring a web server > "uHTTPd"https://wiki.openwrt.org/doc/howto/http.lamp#uhttpd
To install a extra instance of uHTTPd on port 81 instead of the default serverport 80 which is alrerady being used by the GLi webinterface and LuCI.
PHPhttps://wiki.openwrt.org/doc/howto/php
To install PHP.
To be able to see all the available PHP packages you first need to update the package list with the command:
opkg update
After that you will be able see a lot of PHP packages with the command
opkg list php*
as described at the documentation page.
Then I got an issue with setting up the timezone correctly. I live within the timezone “Europe/Amsterdam”, but PHP told me on the phpinfo-page that the timezone isn’t recognized. Even UTC+1 wasn’t recognized.
Luckily after a Google search I found this page explaining the solution: http://forum.arduino.cc/index.php?topic=221261.msg1608848#msg1608848
I had to install timezone configuration into OpenWRT. After that PHP did recognize the correct timezone setting.
Then I wanted to test whether my other scripts can be translateded into PHP and whether PHp can drive my Blink1 LED’s and GL-AR150 onboard LED’s: yes, it’s possible!
I’ll place the scripts in seperate reply’s to maintain the overview. The forum doesn’t support tabs, so when this becomes a issue please mail me at one of the mailadresses at http://www.thebigsite.nl/?p=39. The form currently doesn’t work!
My test-script to see whether PHP can be used to drive the GL-AR150 onboard LED’s. I saved it as “morsecode.php”.
I have based this script on my topic “Doing funny things with the onboard leds of the GL-AR150 ”
"Important to know that this is a very dangerous script when you have connected your GL-AR150 directly to the internet without any other protection. The same for big networks like the network of your employer. Someone could execute naste commands on your GL-AR150 when abusing this script!
For now it looks like runnig smoothly, but I didn’t run a stressfull PHP-script.
Also the GL-AR150 has very little memory to store PHP-websites and databases on.
Since it has only 1 USB-port and I already use this port for my Blink1 LED and don’t want to use a space consuming USB-hub my GL-AR150 will never run heavy PHP-scripts.
Maybe an idea for a new version of a small GLi router? The ability to add a Micro-SD-card? Would be nice if the card can be populated as part of the system where MySQL writes. Although, actually USB-memory-sticks are better for the tons of read/writes of MySQL.
The GL-MT300A looks like not having the ability to add an PoE board? And the GPIO solder points are on the left instead of top?
Also I can’t find an option to buy. Not that I want to buy it right now (pretty broke), but just for the case when I have the money for it.
Knowing what the GL-AR150 is capable to the GL-AR300 and GL-MT750 are pretty interesting. But those 2 models don’t fit my original needs: very small and handy to take with you everywhere. But I will think about it in the future.