Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Mpdf does not install properly in Docker #104

@ChemiKyle

Description

@ChemiKyle

Docker needs to be forced to install composer dependencies properly, assuming you are using 10.5.1. Here is a hacky guide to correcting the issue for want of the proper way to fix this.

Navigate to your docker instance's www/redcap_10.5.1 folder, update the require section to add the mpdf library:

    "require": {
        "mpdf/mpdf": "^7.0.1"
        },

"ssh" into your redcap docker container: docker exec -it rc1051_web bash and follow install composer as in the referenced guide, altering the install-dirto be less annoying, here are the commands as of this comment, note that the sha384 check will likely change:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/bin
php -r "unlink('composer-setup.php');"

While still in your "ssh" session, navigate to /var/www/html/redcap_v10.5.1 and run composer.phar update and wait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions