How do I enable additional PHP extensions?
Several PHP extensions are installed on the scripts servers, but not enabled by default. (Since most scripts do not use these extensions, this saves startup time and memory.) You can load any of these extensions by creating a text file called php.ini in the same directory as your PHP script, and adding a line with:
extension = [extension name].so
for all the extensions you want to enable. These are the extensions installed on the scripts servers, with links to more information about them from the PHP website.
- bcmath
- dba
- dom
- fileinfo
- gd
- imap
- ldap
- mailparse
- mbstring
- mysql
- mysqli
- ncurses
- odbc
- pdo
- pdo_mysql*
- pdo_odbc*
- pdo_pgsql*
- pdo_sqlite*
- pgsql
- rrdtool
- snmp
- soap
- tidy
- xmlreader
- xmlrpc
- xmlwriter
- xsl
- zip
* These extensions require pdo.so to be loaded first.

| Previous: | Can I set up my scripts site to forward/redirect to another website? |
| Next: | WordPress becomes inaccessible after changing settings |
These pages may be reused under either the GFDL 1.2 or CC-BY-SA 3.0.
Questions? Contact scripts@mit.edu.
You are currently connected to better-mousetrap.mit.edu.
