note 60526 added to ref.tidy
| From: | dave at egressive dot com | Date: | Tue, 10 Jan 2006 10:19:09 +0000 |
| Subject: | note 60526 added to ref.tidy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101481@lists.php.net to get a copy of this message | ||
I needed to install tidy support on Ubuntu Breezy 5.10 (with various current php5-*-5.0.5-2ubuntu1.1
and apache2 packages already installed, including php-pear), and after much scratching around
finally figured out I could it like this:
1. $ sudo aptitude install php5-dev tidy libtidy0 libtidy-dev
2. $ pear install tidy
3. select the "[automatic detection]" option when prompted for the location of the
libtidy install directory
4. subsequently edit /etc/php5/apache2/php.ini and/or /etc/php5/cli/php.ini depending on whether
you want tidy to work with both the apache-based interpreter (remember to restart apache2 to
activate the change) or the command line version or both to include the following line at the
*bottom* of the file:
---
extension=tidy.so
---
Note - if you decide to leave any comments in the php.ini files to describe what you've done
(recommended), remember that the comment character is ";" not "#" (that one bit
me :) )
5. confirm that tidy support is installed either by - for the apache version - creating a file with
<?php phpinfo(); ?> in it within your web document root (and then cruise to it with your
browser and do a search on "tidy"), or - for the cli version - with
$ php -i | grep tidy
Hope that helps!
----
Manual Page -- http://www.php.net/manual/en/ref.tidy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60526
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60526&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60526&report=yes
Search -- http://master.php.net/manage/user-notes.php