Having trouble getting PHP to kick off a shell script I wrote.
Below is the result of an echo in PHP outputting the $command_string just before I execute exec("$command_string") ;.
/Applications/XAMPP/xamppfiles/htdocs/myapp/AdminFiles/ForBackup/database_and_or_table_dump.sh "DnD" "my_dbname"
If I take that line and paste it into a shell it runs fine.
I've simplified the shell script to just echo "HELLO", and that doesn't work.
Same if I pass no parameters.
So my script isn't running.
WHO does the script run as? Just curious as I have the perms 777 and that didn't help.
Some of my exec cmd tries:
exec("/bin/bash $command_string") ;
exec ($command_string) ;
[2014-08-21] XAMPP for OS X 1.8.3-5
This version of XAMPP includes:
- Updated OpenSSL to 1.0.1g
- Updated Apache to 2.4.9
- Updated PHP to 5.5.11
- phpMyAdmin 4.1.12
MySQL is 18.104.22.168