How do you install PHP extensions?

  1. Verify that the extension file (.dll in windows, .so in unix/linux/mac) is in the ext directory within the PHP installation directory.
  2. Open the apache configuration file, conf/httpd.conf in the apache installation directory, and find the section for enabled modules. Most modules are commented by default. Remove the "#" at the beginning of the to enable it.
  3. Restart apache