echo shell_exec('ls');
works fine.
But trying to copy something:
echo shell_exec('cp index.php temp/index.php');
It doesnt show any error, but it doesnt copy. I am using nginx with phpcgi.
echo shell_exec('ls');
works fine.
But trying to copy something:
echo shell_exec('cp index.php temp/index.php');
It doesnt show any error, but it doesnt copy. I am using nginx with phpcgi.
Try these two commands.
chmod -R 777 /path/of/your/app
chown -R apache:apache path/of/your/app