User Tools

Site Tools


unix:linux:debian:devuan_sury

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
unix:linux:debian:devuan_sury [2023/01/29 01:51] rodolicounix:linux:debian:devuan_sury [2023/01/29 03:04] rodolico
Line 70: Line 70:
 service php8.1-fpm restart service php8.1-fpm restart
 </code> </code>
 +
 +===== Problems =====
 +
 +I found that when the new repository is used, it will have more recent versions of some of the existing php modules and will update them. Occasionally, I've found that, on Debian/Devuan systems, the apc.so library does not appear to be installed, and I end up with an error message like:
 +
 +**PHP Warning:  PHP Startup: Unable to load dynamic library 'apc.so' (tried: /usr/lib/php/20180731/apc.so (/usr/lib/php/20180731/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20180731/apc.so.so (/usr/lib/php/20180731/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0**
 +
 +The solution is to find which PHP version does not have the apcu module installed, then install it. The following BASH script will look for all versions of PHP and try to run them (using the -v, or version flag). Look for the one that gives you an error. This can be copied and pasted directly into the command line.
 +
 +<code bash>
 +#! /usr/bin/env bash
 +clear
 +for version in $(/usr/sbin/phpquery -V)
 +do
 +   echo ========
 +   echo Testing Version ${version}
 +   php${version} -v
 +done
 +</code>
 +
 +In my case, PHP 7.3 gave an error message, and 7.4 and 8.0 did not. So
 +<code bash>
 +apt install php7.3-apcu
 +</code>
 +
 +fixed the problem.
 ===== References ===== ===== References =====
  
unix/linux/debian/devuan_sury.txt · Last modified: 2023/03/14 21:13 by rodolico