Following the installation of lightweight webserver, we can run a sample php script on pcDuino.
The sample script is called test.php, the code is as following:
<?php echo exec('whoami'); ?>
We then run it by:
It shows that the current user that running php is ‘ubuntu’, which is as expected.