Skip to content

Missing PHP extensions while running composer #29

@croemmich

Description

@croemmich

I have the following config in a Laravel application:

.bp-config/options.json

{
  "WEB_SERVER": "nginx",
  "WEBDIR": "public",
  "LIBDIR": "",
  "PHP_EXTENSIONS": ["amqp", "bz2", "curl", "dba", "exif", "fileinfo", "ftp", "gd", "gettext", "gmp", "igbinary", "imagick", "imap", "intl", "ldap", "mailparse", "mbstring", "mcrypt", "memcache", "memcached", "mongo", "msgpack", "mysql", "mysqli", "openssl", "pdo", "pdo_sqlite", "pdo_mysql", "pdo_pgsql", "pgsql", "phalcon", "phpiredis", "pspell", "redis", "snmp", "soap", "sockets", "sundown", "twig", "zip", "zlib"],
  "ZEND_EXTENSIONS": ["xdebug"]
}

Obviously I don't actually need all of the extensions, but it appears they are all being loaded as I configured:
https://laravel.mybluemix.net/phpinfo.php#module_mcrypt

However, when composer attempts to run Laravel's post install scripts, the script is throwing the following error:

Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error

From what I can tell, the built ini file is being copied to tmp, and should have the same configuration as php-fpm, but the error above makes me wonder if that is the case. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions