PDA

View Full Version : How to add extensions to PHP 5 running as an Apache 2 module



killthelight
November 4th, 2007, 01:59 PM
I had a problem with installing extensions for PHP5 running on Ubuntu server 6.10 with Apache2... found the solution (and wrote about it here (http://www.joshsharp.com.au/blog/view/how_to_add_extensions_to_php_5_running_as_an_apach e2_module)) and thought I should share the knowledge, as a lot of people are getting told the wrong information.

If you need to install extra extensions for PHP like GD, curl... you do not have to recompile PHP, add handlers into Apache's conf files, etc etc... you can download the extensions from the repository and they will just work.

Search for "php5" in synaptic or use (for example):


sudo apt-get install php5-gd

give Apache a force-reload and you're all set. Much easier than the other solutions I found.

Hope this helps someone.

jim@wgp
December 22nd, 2008, 01:05 PM
Many thanks for this help, it was just what I needed :)

Reiger
December 22nd, 2008, 08:11 PM
Doesn't apt take care of the reload out of the box?

drubin
December 22nd, 2008, 09:17 PM
Doesn't apt take care of the reload out of the box?

Hope not..

I like to re-load my configs/applications on my own time now straight after install