You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed phantommagick and phantomjs via composer on my dev server. All running well, had no issues.
But after copying my project to the live server I'm getting error 500. After investigating, I found the the error is generated at line 145 in Runner.php , verifyBinary function : } elseif (Str::contains($uname, 'linux')) { if (! shell_exec(escapeshellcmd("which {$binary}"))) { return false; }
Now, I tried to manually set the binary path: $conv->setBinary("path/bin/phantomjs"); No change
I tried to comment the above, and have it return true to test, only to get the failure in another place using shell commands (in the run function of the same class). So it seems to me there's an issue with the shell commands?
Help! Any ideas why this happens? I don't seems able to unstuck this.
Thanks
EDIT: forgot to add that running other shell commands work. I.e.: echo shell_exec(escapeshellcmd(" ls "));
So it seems that the which command is returning either false or null. Or it doesn't find the binary (which is there..). But this is where my understanding of this ends.
The text was updated successfully, but these errors were encountered:
I installed phantommagick and phantomjs via composer on my dev server. All running well, had no issues.
But after copying my project to the live server I'm getting error 500. After investigating, I found the the error is generated at line 145 in Runner.php , verifyBinary function :
} elseif (Str::contains($uname, 'linux')) { if (! shell_exec(escapeshellcmd("which {$binary}"))) { return false; }
Now, I tried to manually set the binary path: $conv->setBinary("path/bin/phantomjs"); No change
I tried to comment the above, and have it return true to test, only to get the failure in another place using shell commands (in the run function of the same class). So it seems to me there's an issue with the shell commands?
Help! Any ideas why this happens? I don't seems able to unstuck this.
Thanks
EDIT: forgot to add that running other shell commands work. I.e.:
echo shell_exec(escapeshellcmd(" ls "));
So it seems that the which command is returning either false or null. Or it doesn't find the binary (which is there..). But this is where my understanding of this ends.
The text was updated successfully, but these errors were encountered: