Abort install if requirements are not met

Description

We often see people having these problems:

  • Too old PHP version

  • SSL extension not installed

  • mbstring extension not installed

  • Max upload size too small

It should not be possible to install/activate H5P on a system when we know the system will make H5P fail.

I have started on a requirement-tester some time ago:
https://github.com/h5p/h5p-php-library/commit/40e4da5b4268f0

This could be used by the different platforms as follows:

Acceptance Criteria

Should not be possible to activate if requirements are not met.
TBD: How to use this on existing sites? Should we run the tests in a upgrade hook, and warn the admin about any mandatory stuff missing?

Status

Assignee

Unassigned

Reporter

Pål Jørgensen

Labels

None

Funding

None

Code reviewer

None

Released

None

Priority

High
Configure