0

I've got a VPS setup with Nginx & PHP5-FPM. Being fairly new to unix, VPS etc... it took me ages to get the setup I wanted.

However Now I want to be able to install some extensions onto PHP without haveing to rebuild the entire thing. For example. Is there a way to install the php_tidy extension on an existing PHP setup?

2 Answers 2

1

You can compile an extensions as a shared library. Then you just have to declare your module in the php.ini.

There is a description at php.net for phpize.

Performance differences between a module and a full compilation are discussed here.

Sign up to request clarification or add additional context in comments.

1 Comment

I haven't got time to try this now, but it looks like what I need.
1

Check out the documentation at http://pecl.php.net/ on how to install PHP extensions.

It's usually as easy as running a command such as

pecl install tidy

2 Comments

okay, but I thought this only works for php4? Will it work for PHP5 as well?
The above command pecl install tidy returned the following error configure: error: Cannot find libtidy ERROR: /etc/pear/temp/download/tidy-1.2/configure --with-tidy' failed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.