I installed PHP Documentor on a shared host (Just Host) via PEAR and it appears to have installed correctly, no errors reported, and phpdoc
is listed under the bin
directory. Further, phpDocumentor
is present under php
, both of which reside in my Home folder at /home/[user]/
.
I looked at phpdoc
in the bin
directory and everything points to the right places. I also followed the directions provided on my host's site and set my PHP include_path to /home/[user]/php
. I have tried executing phpdoc
from every location imagionable, including under home/[user]/bin/
and I keep getting the following result:
-bash-4.1$ phpdoc
-bash: phpdoc: command not found
And here is the output from $PATH
-
-bash-4.1$ echo $PATH
/home/[user]/perl5/bin:/usr/lib64/qt-3.3/bin:/home/[user]/perl5/bin:/ramdisk/php/54/bin:/usr/php/54/usr/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
The host is Linux, running PHP 5.4.10, Apache version 2.2.23.
Any thoughts?
I read the reply from my host's support rep again and tried their suggestion (what a concept) - it worked! Simply ran ~/bin/phpdoc
and voila.
If someone can explain why this worked and simply navigating to the same directory and entering phpdoc
did not work, I'd appreciate it. Also, how might one make a link to that path so that phpdoc
would work on its own?
Thanks!