HowTo: PEAR Install PhpDocumentor
Lately I have been trying to install PhpDocumentor on my office workstation using PEAR. We are using Ubuntu Linux BTW here, (Open-Source Rocks!) but I have encountered something not new to me somewhat forgotten. Every time I try to install PhpDocumentor here at the office typing endlessly sudo pear install PhpDocumentor on the command line. It always spit back a memory limit error! What?! but I’m pretty sure I have configured my memory_limit = 16M; on my /etc/php5/apache2/php.ini (for someone with keen eyes might have known already). The unknown issue was probably cause by my smooth installation on my development server at home. And I’m asking what is the difference It should work?! Days pass by I’m almost at the edge of asking at PHPUGPH PEAR sub-forums until before submitting and resurrects a buried thread on how to install using PEAR. Until…
Wait a minute,.. I’m in the command line, I’m using PHP in the command line. Yup! you got it right! If you don’t? continue reading. It’s because I have been using PHP in the command line meaning I should have edit sudo vi /etc/php5/cli/php.ini instead of sudo vi /etc/php5/apache2/php.ini. So now you know whenever you are using PHP in the command line your setting are determined by /etc/php5/cli/php.ini.
Now we are set to install PhpDocumentor as of the writing its 1.3.2.
PEAR Installation: PhpDocumentor – We will also apply the web interface.
1.) Create a PEAR directory in /path/to_public_html/pear/
2.) sudo pear config-set data_dir /path/to/public_html/pear
3.) sudo pear install PhpDocumentor
4.) Step 4, there’s no step 4 :P
That’s all you can now take a look and play at your shiny PhpDocumentor at http://localhost/pear/PhpDocumentor/
Enjoy! (^_^)
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

No comments yet.
Sorry, the comment form is closed at this time.