ansible/php
1
0
Fork
You've already forked php
0

Possible problem with apcu.so library? #1

Open
opened 2022年11月26日 20:27:01 +01:00 by solarchemist · 0 comments

On luxor (Ubuntu 22.04), regular PHP warnings about missing apcu.so, first recorded in late July 2022:

$ sudo journalctl | grep PHP
jul 29 11:09:00 luxor sessionclean[156787]: PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
nov 24 13:48:29 luxor systemd[1]: Stopped Clean PHP session files every 30 mins.
nov 24 13:48:29 luxor systemd[1]: Stopping The PHP 8.1 FastCGI Process Manager...
nov 24 13:48:29 luxor systemd[1]: Stopped The PHP 8.1 FastCGI Process Manager.
nov 24 13:49:06 luxor systemd[1]: Started Clean PHP session files every 30 mins.
nov 24 13:49:06 luxor systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
nov 24 13:49:06 luxor php-fpm8.1[1066]: [24-Nov-2022 13:49:06] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Looks like something is amiss:

root@luxor:~
# php --ini
PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Configuration File (php.ini) Path: /etc/php/8.1/cli
Loaded Configuration File: /etc/php/8.1/cli/php.ini
Scan for additional .ini files in: /etc/php/8.1/cli/conf.d
Additional .ini files parsed: /etc/php/8.1/cli/conf.d/10-opcache.ini,
/etc/php/8.1/cli/conf.d/10-pdo.ini,
/etc/php/8.1/cli/conf.d/20-apcu.ini,
/etc/php/8.1/cli/conf.d/20-calendar.ini,
/etc/php/8.1/cli/conf.d/20-ctype.ini,
/etc/php/8.1/cli/conf.d/20-exif.ini,
/etc/php/8.1/cli/conf.d/20-ffi.ini,
/etc/php/8.1/cli/conf.d/20-fileinfo.ini,
/etc/php/8.1/cli/conf.d/20-ftp.ini,
/etc/php/8.1/cli/conf.d/20-gettext.ini,
/etc/php/8.1/cli/conf.d/20-iconv.ini,
/etc/php/8.1/cli/conf.d/20-phar.ini,
/etc/php/8.1/cli/conf.d/20-posix.ini,
/etc/php/8.1/cli/conf.d/20-readline.ini,
/etc/php/8.1/cli/conf.d/20-shmop.ini,
/etc/php/8.1/cli/conf.d/20-sockets.ini,
/etc/php/8.1/cli/conf.d/20-sysvmsg.ini,
/etc/php/8.1/cli/conf.d/20-sysvsem.ini,
/etc/php/8.1/cli/conf.d/20-sysvshm.ini,
/etc/php/8.1/cli/conf.d/20-tokenizer.ini

Might be a good time to revisit the PHP role and its interaction with our Apache role.

On luxor (Ubuntu 22.04), regular PHP warnings about missing `apcu.so`, first recorded in late July 2022: ``` $ sudo journalctl | grep PHP jul 29 11:09:00 luxor sessionclean[156787]: PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 nov 24 13:48:29 luxor systemd[1]: Stopped Clean PHP session files every 30 mins. nov 24 13:48:29 luxor systemd[1]: Stopping The PHP 8.1 FastCGI Process Manager... nov 24 13:48:29 luxor systemd[1]: Stopped The PHP 8.1 FastCGI Process Manager. nov 24 13:49:06 luxor systemd[1]: Started Clean PHP session files every 30 mins. nov 24 13:49:06 luxor systemd[1]: Starting The PHP 8.1 FastCGI Process Manager... nov 24 13:49:06 luxor php-fpm8.1[1066]: [24-Nov-2022 13:49:06] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 ``` Looks like something is amiss: ``` root@luxor:~ # php --ini PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20210902/apcu.so (/usr/lib/php/20210902/apcu.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/apcu.so.so (/usr/lib/php/20210902/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Configuration File (php.ini) Path: /etc/php/8.1/cli Loaded Configuration File: /etc/php/8.1/cli/php.ini Scan for additional .ini files in: /etc/php/8.1/cli/conf.d Additional .ini files parsed: /etc/php/8.1/cli/conf.d/10-opcache.ini, /etc/php/8.1/cli/conf.d/10-pdo.ini, /etc/php/8.1/cli/conf.d/20-apcu.ini, /etc/php/8.1/cli/conf.d/20-calendar.ini, /etc/php/8.1/cli/conf.d/20-ctype.ini, /etc/php/8.1/cli/conf.d/20-exif.ini, /etc/php/8.1/cli/conf.d/20-ffi.ini, /etc/php/8.1/cli/conf.d/20-fileinfo.ini, /etc/php/8.1/cli/conf.d/20-ftp.ini, /etc/php/8.1/cli/conf.d/20-gettext.ini, /etc/php/8.1/cli/conf.d/20-iconv.ini, /etc/php/8.1/cli/conf.d/20-phar.ini, /etc/php/8.1/cli/conf.d/20-posix.ini, /etc/php/8.1/cli/conf.d/20-readline.ini, /etc/php/8.1/cli/conf.d/20-shmop.ini, /etc/php/8.1/cli/conf.d/20-sockets.ini, /etc/php/8.1/cli/conf.d/20-sysvmsg.ini, /etc/php/8.1/cli/conf.d/20-sysvsem.ini, /etc/php/8.1/cli/conf.d/20-sysvshm.ini, /etc/php/8.1/cli/conf.d/20-tokenizer.ini ``` Might be a good time to revisit the PHP role and its interaction with our Apache role.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ansible/php#1
Reference in a new issue
ansible/php
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?