Hi all,
Working with:
Linux Debian
Lighttpd Server
PHP7.0
I want to launch some shell scripts pressing HTML buttons. All the files are placed in /var/www/html The rights are done by:
sudo chown www-data:www-data /var/www/
So, I wrote a very simple code:
HTML test code (index.html):
<form action="openApp.php">
<input type="submit" value="Open Script">
</form>
PHP test code (openApp.php):
<?php
exec('test.sh');
header('Location: http://localhost/index.html?success=true');
?>
But no luck, nothing is working.