A
A
alexiusgrey2022-03-02 02:54:36
css
alexiusgrey, 2022-03-02 02:54:36

Wordpress+Centos 7, upgraded php version from 7.1 to 8, dompdf and zip still not working, how to enable them?

Website on vp, vps client on centos 7. And php was just the oldest - 7.1.

I did it first on my hosting, and then transferred it to the client. When creating the site, I used the dompdf library. It's not a plugin, just a library - I needed a custom file to attach to the letter.

While doing it on my hosting, where php was immediately version 8, these errors were not there, a letter with an attached pdf came.

dompdf has a higher minimum requirement than 7.1.
I first transferred the site with a duplicator to what it was, and then I already upgraded the php version - at first I didn’t know how to upgrade it.
Version 8.0 got up, checked through phpinfo, but the letters never come.

For comparison, I tried to install my site on the same service not on the VPS server, but on the hosting of the client's account. There, php was originally 7.4, and a letter with pdf arrives safely. So something is wrong with the vps settings, something is missing.

Apparently, I already installed the necessary modules -

yum --enablerepo=remi-php80 -y install php80-php-cli php80-php-pear php80-php-fpm php80-php-pecl-mcrypt php80-php-bcmath php80-runtime php80-php-common php80-php-pdo php80-php-process php80-php-mysqlnd php80-php php80-php-opcache php80-php-gmp php80-php-gd php80-php-mbstring php80-php-json php80-php-xml php80-php-pecl-imagick php80-php-intl php80


What was required in the dompdf documentation is here.
Even in the health of the site it says that "The recommended zip extension is not installed or disabled.", Because of the zip swears and the duplicator does not create a new copy.

What did I not install so that it works on the VPS as on the host?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question