How to enable PHP extensions like "mbstring" etc on your server


#1

This post explains enabling extensions on your PHP server. This is very important for your application to work correctly. Most of the time you have extensions enabled in your development environment but missing in your OpsCaptain env after you deploy unless you specifically enable them. By not doing this, your app may not work correctly.

To enable extensions, click on your app from the Apps section. You will be navigated to the App details section. Scroll to the very bottom of the page for the PHP settings section. On the form, enter the extensions you want to enable in the provided textbox. Separate each extension you want on a a new line as seen in the image below:

Click on the Save PHP settings to commit your changes. You will have to redeploy your application again for the changes to take effect.

Below are the list of extensions you have to enable explicitly. Note, if the extension is not listed here, it may be enabled by default and you do not have to enable it explicitly. Like the “iconv” extension is enabled by default so it is not listed below.

For PHP 5.6 users, you may enable any of the extensions listed below:

amqp, apcu, bz2, cassandra, curl, dba, enchant, exif, fileinfo, ftp, gd, gearman, geoip, gettext, gmp, igbinary, imagick, imap, interbase, ioncube, ldap, lua, lzf, mailparse, mbstring, mcrypt, memcache, memcached, mongo, mongodb, msgpack, mssql, mysql, mysqli, oauth, opcache, openssl, pcntl, pdo, pdo_dblib, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phalcon, phpiredis, protobuf, protocolbuffers, pspell, rdkafka, readline, recode, redis, shmop, snmp, soap, sockets, solr, stomp, suhosin, sundown, sysvmsg, sysvsem, sysvshm, tidy, twig, wddx, xcache, xdebug, xhprof, xmlrpc, xsl, yaf, yaml, zip, zlib

For PHP 7.0 users, you may enable any of the extensions listed below:

amqp, apcu, bz2, cassandra, curl, dba, enchant, exif, fileinfo, ftp, gd, geoip, gettext, gmp, igbinary, imagick, imap, interbase, ioncube, ldap, lua, lzf, mailparse, mbstring, mcrypt, memcached, mongodb, msgpack, mysqli, oauth, opcache, openssl, pcntl, pdo, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phalcon, phpiredis, protobuf, pspell, rdkafka, readline, recode, redis, shmop, snmp, soap, sockets, solr, stomp, sysvmsg, sysvsem, sysvshm, tideways, tideways_xhprof, tidy, wddx, xdebug, xmlrpc, xsl, yaf, yaml, zip, zlib

For PHP 7.1 users, you may enable any of the extensions listed below:

amqp, apcu, bz2, cassandra, curl, dba, enchant, exif, fileinfo, ftp, gd, geoip, gettext, gmp, igbinary, imagick, imap, interbase, ioncube, ldap, lua, lzf, mailparse, mbstring, mcrypt, memcached, mongodb, msgpack, mysqli, oauth, opcache, openssl, pcntl, pdo, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phalcon, phpiredis, protobuf, pspell, rdkafka, readline, recode, redis, shmop, snmp, soap, sockets, solr, stomp, sysvmsg, sysvsem, sysvshm, tideways, tideways_xhprof, tidy, wddx, xdebug, xmlrpc, xsl, yaf, yaml, zip, zlib

For PHP 7.2 users, you may enable any of the textensions listed below:

amqp, apcu, bz2, cassandra, curl, dba, enchant, exif, fileinfo, ftp, gd, geoip, gettext, gmp, igbinary, imagick, imap, interbase, ioncube, ldap, lua, lzf, mailparse, mbstring, memcached, mongodb, msgpack, mysqli, oauth, opcache, openssl, pcntl, pdo, pdo_firebird, pdo_mysql, pdo_odbc, pdo_pgsql, pdo_sqlite, pgsql, phalcon, phpiredis, protobuf, pspell, rdkafka, readline, recode, redis, shmop, snmp, soap, sockets, sodium, stomp, sysvmsg, sysvsem, sysvshm, tideways, tideways_xhprof, tidy, wddx, xdebug, xmlrpc, xsl, yaf, yaml, zip, zlib

For the cheapest managed PHP cloud hosting service with support for (MongoDB, MySQL, PostgreSQL and Redis) on the market today, checkout OpsCaptain:


pinned #2

unpinned #3

pinned #4