Wednesday, April 18, 2012

How to install PhpDocumentor on lampp (xampp on Ubuntu)

1. open terminal and run the command (we are installing phpdocs version 2.0.0a2)
sudo /opt/lampp/bin/pear install channel:pear.phpdoc.org/phpDocumentor-2.0.0a2

2. add lampp bin to $PATH variable so that phpdoc can be called from anywhere
echo 'export PATH=$PATH:/opt/lampp/bin/' >> ~/.profile

3. reload the .profile
. ~/.profile

4. Test by running the phpdoc on the terminal.
phpdoc


References: