linux run php file code example
Example 1: run php server
cd path/to/your/app
php -S localhost:8000
Example 2: run shell script from php file
echo shell_exec('sh /home/scripts/fix-perm.sh');
cd path/to/your/app
php -S localhost:8000
echo shell_exec('sh /home/scripts/fix-perm.sh');