Re-configuring PHP-already installed with new extensions

I have installed PHP and now it needs to be reconfigured with few extensions:eg: OCI8, XSL transformation etc.

  1. Do I have to recompile PHP, or a few edits to config files will do.
  2. Also how to list the options with which PHP is compiled.
  1. It depends on whether you have actually compiled those extensions. For instance, it may be compiled and installed but not enabled, then of course you don't need to install again, just enable it in php.ini will do. But usually this is not the case.

  2. php -i | grep configure

If the php executable is not installed, execute <? phpinfo() ?> as PHP script on Web server to show the PHP configuration page. There you will find the configure command string.