Hello friends,
I am having a serious headache with one command that I want to execute via PHP Exec.
The scenario is that I have a gpg file that is encrypted by the sender.
I want to decrypt it with this command.
Now both this directories have permissions set to 777
The input file does exists at the given path. The output folder also exists.
If I run the command via SSH in putty. Then it works nice and it does decrypts the file and gives me the output.zip
Only problem is I can't run the same thing via PHP Exec.
Hoping that someone will help me here. I have tried almost all ways that I knew
Thanks.
I am having a serious headache with one command that I want to execute via PHP Exec.
The scenario is that I have a gpg file that is encrypted by the sender.
I want to decrypt it with this command.
Code:
gpg -d -o /home/username/public_html/data/output.zip /home/username/public_html/encrypted/input.zip.gpg
The input file does exists at the given path. The output folder also exists.
If I run the command via SSH in putty. Then it works nice and it does decrypts the file and gives me the output.zip
Only problem is I can't run the same thing via PHP Exec.
Hoping that someone will help me here. I have tried almost all ways that I knew
Thanks.