Задать вопрос
@cereberlum

Как установить MPHP на сервер?

Подскажите как установить MPDF отсюда https://github.com/mpdf/mpdf на сервер. На сервере установлена cyberpanel os Ubuntu 20.04.6 LTS и несколько версий php начиная с 7.2 (переключаю в панели) и заканчивая 8.1 . Сайт для которого хочу загрузить библиотеку на php 7.4/ пробовал так
root@www:~# composer require mpdf/mpdf
PHP Warning:  PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been created
Running composer update mpdf/mpdf
Loading composer repositories with package information
Updating dependencies
Lock file operations: 7 installs, 0 updates, 0 removals
  - Locking mpdf/mpdf (v8.1.6)
  - Locking mpdf/psr-log-aware-trait (v2.0.0)
  - Locking myclabs/deep-copy (1.11.1)
  - Locking paragonie/random_compat (v9.99.100)
  - Locking psr/http-message (1.1)
  - Locking psr/log (1.1.4)
  - Locking setasign/fpdi (v2.3.7)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
  - Downloading setasign/fpdi (v2.3.7)
  - Downloading psr/log (1.1.4)
  - Downloading psr/http-message (1.1)
  - Downloading paragonie/random_compat (v9.99.100)
  - Downloading myclabs/deep-copy (1.11.1)
  - Downloading mpdf/psr-log-aware-trait (v2.0.0)
  - Downloading mpdf/mpdf (v8.1.6)
  - Installing setasign/fpdi (v2.3.7): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing psr/http-message (1.1): Extracting archive
  - Installing paragonie/random_compat (v9.99.100): Extracting archive
  - Installing myclabs/deep-copy (1.11.1): Extracting archive
  - Installing mpdf/psr-log-aware-trait (v2.0.0): Extracting archive
  - Installing mpdf/mpdf (v8.1.6): Extracting archive
2 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
3 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
Using version ^8.1 for mpdf/mpdf
Но что-то не подключилась, как быть
  • Вопрос задан
  • 178 просмотров
Подписаться 1 Простой 8 комментариев
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы