So I'm running dokuwiki under Apache on RHEL6 and working on a plugin that calls proc_open in a php script. My problem is that I'm trying to call an application that has been installed locally for apache (under
~/.local/bin), but the program that gets called from php is a different one. This is probably better understood this way:
When I log in as user
$ sudo su - user
And I check my application version:
$ /var/www/.local/bin/rst2html.py --version
rst2html.py (Docutils 0.12 [release], Python 2.6.6, on linux2)
However, when I make the same call in my php application (with proc_open) that runs under apache I get:
rst2html.py (Docutils 0.6 [release], Python 2.6.6, on linux2)
Which is the version that is installed globally, i.e., is available to all users.
So what's causing this discrepancy, is there something in the environment that I need to set up?
Note: the python application was installed using