Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • My first guess is that it's a PATH issue. Can you please edit your post to include the output of this test.php: <?php print shell_exec('echo $PATH'); ?>' Does it show a PATH at all? Is your python3.6` in that path? If either answer is no, you'll need to specify the full path to /where/ever/you/have/python3.6
    – Jim L.
    Commented Aug 20, 2019 at 17:51
  • @JimL. added! It shows a path, but python3.6 is not in that path. Commented Aug 20, 2019 at 18:04
  • As my previous comment says then, you'll need to update your test.php file to include the full path to python3.6 in your PHP code. Possibly the full path to test.py also.
    – Jim L.
    Commented Aug 20, 2019 at 18:40
  • @JimL. Thank you! This worked. Commented Aug 20, 2019 at 21:13