How do you install PHP extensions?
- Verify that the extension file (.dll in windows, .so in unix/linux/mac) is in the ext directory within the PHP installation directory.
- 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.
- Restart apache
PECL stands for PHP Extension Community Library and it is a repository for extensions which add additional functionality to the core PHP installation. An example would be the extension APC (Alternative PHP Cache) which allows you to setup a cache which optimizes the serving of intermediate code. When using a server, you can install the PECL repository and call upon it to download extensions as you require them.
Answer To get the list of currently loaded extensions within a PHP program. Use get_loaded_extensions() function. To check what extensions are loaded by PHP on a given server, type this on the command line: php -m Here is a php script that will list the loaded extensions in a table. Save this file as phpext.php and place it on your website. Go to this file in your web browsers and see a list of loaded…
The specific order of program installation does matter here. PHP makes certain configuration changes to Apache's httpd.conf to enable support for PHP files. If you install Apache after PHP, then those changes will not take place. To add such support, either re-install PHP, or edit httpd.conf manually.