PHP.ini Extensions

Below is a list of PHP.ini extensions from my php.ini file. I have curl, gettext, mysql, openssl, pdo_mysql, and posix enabled based on the default PHP settings and reading FreePBX installation requirements. Based on the list below, are there any other extensions I should enable for PHP with FreePBX-12?

;extension=bcmath.so
;extension=bz2.so
;extension=calendar.so
extension=curl.so
;extension=dba.so
;extension=enchant.so
;extension=exif.so
;extension=ftp.so
;extension=gd.so
extension=gettext.so
;extension=gmp.so
;extension=iconv.so
;extension=imap.so
;extension=intl.so
;extension=ldap.so
;extension=mcrypt.so
;extension=mssql.so
;extension=mysqli.so
extension=mysql.so
;extension=odbc.so
;zend_extension=opcache.so
extension=openssl.so
extension=pdo_mysql.so
;extension=pdo_odbc.so
;extension=pdo_pgsql.so
;extension=pdo_sqlite.so
;extension=pgsql.so
;extension=phar.so
extension=posix.so
;extension=pspell.so
;extension=shmop.so
;extension=snmp.so
;extension=soap.so
;extension=sockets.so
;extension=sqlite3.so
;extension=sysvmsg.so
;extension=sysvsem.so
;extension=sysvshm.so
;extension=tidy.so
;extension=xmlrpc.so
;extension=xsl.so
;extension=zip.so

CentOS does this a little differently which is easier to manager (each extension has it’s own ini)

[[email protected] ~]# ls /etc/php.d
curl.ini             json.ini    pdo_mysql.ini   sysvsem.ini    xmlwriter.ini
digium_register.ini  ldap.ini    pdo_sqlite.ini  sysvshm.ini    xsl.ini
dom.ini              mysqli.ini  phar.ini        wddx.ini       zendguard.ini
fileinfo.ini         mysql.ini   posix.ini       xmlreader.ini  zip.ini
gd.ini               pdo.ini     sysvmsg.ini     xmlrpc.ini

Basically in each file you just have:

; Enable dom extension module
extension=dom.so

You can ignore “digium_register.ini”. CentOS only.

Thank you very much. There may not be a one to one comparason of all the extensions you listed compared to those in my php.ini, but I will update my php.ini with the extensions I see compared to your list and more importantly the installation script I’ve been developing, minus digium_register.ini.

The *.d structure is often called the “drop” (for “.d” directory, specifically here php.d) I’m pretty sure it would be honored in your php also, look at the top level .cong file for hints, it certainly makes it easier to maintain a system . . .