I have a shell script which mcrypts for me
echo "Preparing..."
mcrypt -F -c ./.mcrypt $ORIG
echo "Moving..."
mv "$ORIG.nc" $CRYPTED
echo "Done"
the php file calls it
$COMMAND = './crypt.sh '.$CNAME;
if ($_POST['cname']) {
$output=shell_exec($COMMAND);
echo $output;
}
i can see Preparing... Moving... Done but
the file is not encrypted! but if i run
php index.php through ssh, the encrypt happens.
why is it going through the script but not crypting or
moving or outputting anything else?