A minimal php5 installation includes php5, php5-cgi.

opkg update
opkg install php5 php5-cgi
nano /etc/config/uhttpd

Ensure that you uncomment the extension interpreter line for PHP in the main section of the uHTTPd config file:

list interpreter ".php=/usr/bin/php-cgi"

/etc/init.d/uhttpd restart

nano /www/phpinfo.php
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

Using browser http://arduinoip_address/phpinfo.php to confirm php is installed.

Warning: phpinfo(): It is not safe to rely on the system's timezone settings.

opkg update
opkg install zoneinfo-core
opkg install zoneinfo-northamerica

uci set system.@system[0].zonename='America/New_York'
uci set system.@system[0].timezone='EST5EDT,M3.2.0,M11.1.0'
uci commit system
nano /etc/php.ini
date.timezone = "America/New_York"
root@Arduino:~# /etc/init.d/uhttpd  restart

 power cycle the Yun.

Comments powered by CComment