M
M
Michael2018-11-05 19:10:35
PHP
Michael, 2018-11-05 19:10:35

How to permanently solve the extension priority issue in php?

I already avoid unnecessary updates due to the fact that every other time I get an error that I have to solve again.
This time the problem is with apcu.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/apc.so' - /usr/lib/php/20160303/apc.so: undefined symbol: zif_apcu_store in Unknown on line 0

How to solve such errors correctly and in general, how to solve this problem once and for all so that you no longer encounter it?
UPD: It seems that the problem is not necessarily in the priorities:
it is because the pdo-pgsql module is already build in the binary of php, so that you do not need to use a dynamic module (with the *.so extension)

With a binary module, dynamic so is no longer needed. But how then to disable them automatically so that each time you do not edit mods-available?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sundukov, 2018-11-15
@alekciy

How to solve such errors correctly and in general, how to solve this problem once and for all so that you no longer encounter it?

Connect a good repository:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/nginx-mainline
sudo apt update

Not as if the module is compiled statically. Therefore, it is important to use and correctly use a ready-made repository.

I
Ivan Bogomolov, 2018-11-15
@kraso4niy

php.net/manual/en/function.extension-loaded.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question