I have a wordpress website running with Apache. From that website, I need to run a python code, but the libraries I need are configured inside an Anaconda environment. To activate the anaconda environment, I need to run:
source activate my_environment
...on the terminal. On my .php code, on the other hand, it would go something like:
shell_exec('source activate my_environment');
The thing is: I can only activate my anaconda environment from terminal with the user that created it. How can I set it up so that my Apache server can activate it from a PHP snippet that I have on my website?