如何在服务器上安装MPDF PHP? [关闭]

问题描述 投票:0回答:0

大家好。告诉我如何从这里 https://github.com/mpdf/mpdf 安装 PDF 到服务器。服务器上安装了 cyberpanel os Ubuntu 20.04.6 LTS 和几个 php 版本,从 7.2 开始(我在面板中切换)到 8.1 结束。我要在 php 7.4/

中下载库的站点

试过这个:

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```
Unfortunately, the library did not connect in this way.
php ubuntu server mpdf
© www.soinside.com 2019 - 2024. All rights reserved.