Forum Moderators: coopster

Message Too Old, No Replies

Install tidy extension under Linux and php 4.3.8

my host can't get it done and I can't help

         

ergophobe

8:41 pm on Jul 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I need... make that "want" the php_tidy extension available on a couple of hosted servers. Someone else is managing these.

I have installed the tidy extension on my Win2K desktop no problem. But my host just can't get it done (these folks are usually very good). They are on their third recompile on the first server and haven't gotten anywhere. They've followed the instructions in the manual, but to no effect.

Has anybody done it? Care to share the details?

For more info, see the php documentation for tidy [php.net]

Tom

coopster

8:47 pm on Jul 31, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you make sure they are attempting the correct version?


Tidy 1.0 is just for PHP 4.3.x, while Tidy 2.0 is just for PHP 5.

ergophobe

9:38 pm on Jul 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



They are trying to install version 1.1, which according to the pecl site is correct for php 4.3.

They have tried both the manual and the PEAR install as mentioned in the documentation. I think, however, they're missing a step and would like to have a step by step instruction for them.

Something they're not understanding. Unless I misread our last communication, they have not put in an

extension=tidy.so

line in php.ini which should be necessary. I have a feeling, though, that they may simply be missing one of the components (like getting php_tidy installed but not libtidy or something like that). I wish I still had my Linux box running at home so I could try the install myself and see if I could figure it out.

In searching around, I did find a long blog rant from this month about how hard the tidy extension was to get running under Linux, so it's not just them.

Incidentally, it is a great extension if you're accepting user input and displaying it (I just built a site where the site admin updates pages via a web interface and this is a good way to check for funky html).

ergophobe

11:27 pm on Jul 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Okay,

So now they did everything they're supposed to
- compile and install libtidy
- compile and install with php_tidy
- add the extension=tidy.so line

Still doesn't work. I can't think of anything more to suggest and they can't think of anything more to try.

Tom

ergophobe

4:41 pm on Aug 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Finally, worked through this. The other modules that they have added in are compiled right in and don't have to link to a *.so file, they had never set the extensions_dir for php, which was still pointing to ./ they changed it to point to the actual extensions directory and all is well.

Now I can let the webmaster enter html into the page edit form and have tidy at least try to fix up page errors. Awesome.