Arch nginx: php-fpm errors #83

Closed
opened 2025-07-11 20:23:10 +00:00 by jakka · 11 comments

on arch with latest package versions 4get (latest commit) throws this error when querying with external client:

2025/07/11 22:18:01 [error] 2350082#2350082: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apcu_inc() in /var/www/4get/lib/bot_protection.php:10
Stack trace:
#0 /var/www/4get/web.php(19): bot_protection->__construct()
#1 {main}
  thrown in /var/www/4get/lib/bot_protection.php on line 10" while reading response header from upstream, client: redacted, server: redacted, request: "GET /web?s=apcu_inc() HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "redacted"
on arch with latest package versions 4get (latest commit) throws this error when querying with external client: ``` 2025/07/11 22:18:01 [error] 2350082#2350082: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apcu_inc() in /var/www/4get/lib/bot_protection.php:10 Stack trace: #0 /var/www/4get/web.php(19): bot_protection->__construct() #1 {main} thrown in /var/www/4get/lib/bot_protection.php on line 10" while reading response header from upstream, client: redacted, server: redacted, request: "GET /web?s=apcu_inc() HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "redacted" ```
Owner

My god this docker shit sucks so much

The apcu package probably got obsoleted again

My god this docker shit sucks so much The apcu package probably got obsoleted again
Author

My god this docker shit sucks so much

The apcu package probably got obsoleted again

funnily enough, im currently running my instance from docker and it works fine

> My god this docker shit sucks so much > > The apcu package probably got obsoleted again funnily enough, im currently running my instance from docker and it works fine
Owner

Well it's complaining about APCU not being present. Run

php -i "phpinfo();" | grep apcu

If nothing gets outputted, PHP isn't compiled/bundled with apcu

If it's not present, install apcu with your package manager and restart your webserver

Well it's complaining about APCU not being present. Run ``` php -i "phpinfo();" | grep apcu ``` If nothing gets outputted, PHP isn't compiled/bundled with apcu If it's not present, install apcu with your package manager and restart your webserver
Author
php -i "phpinfo();" | grep apcu
Additional .ini files parsed => /etc/php/conf.d/apcu.ini,

theres something. given that php-acpu is in main repo, dont think it got obsolete

``` php -i "phpinfo();" | grep apcu Additional .ini files parsed => /etc/php/conf.d/apcu.ini, ``` theres something. given that php-acpu is in main repo, dont think it got obsolete
Owner

Sorry, didn't notice grep was case sensitive

will@fuckedmachine:~$ php -i "phpinfo();" | grep APCu
APCu Support => Enabled
APCu Debugging => Disabled
Sorry, didn't notice grep was case sensitive ``` will@fuckedmachine:~$ php -i "phpinfo();" | grep APCu APCu Support => Enabled APCu Debugging => Disabled ```
Author

oh yeah, now theres nothing in output. guess ill have to stick with docker image...

oh yeah, now theres nothing in output. guess ill have to stick with docker image...
Owner
https://wiki.archlinux.org/title/PHP Ctrl+F `apcu.ini`
Author

yeah even with enabling it in the config apcu support is disabled

yeah even with enabling it in the config apcu support is disabled
Owner

are you sure php-apcu package is installed and that you restarted your PHP-FPM processes?

are you sure `php-apcu` package is installed and that you restarted your PHP-FPM processes?
Author

yep, installed and restarted - is disabled

yep, installed and restarted - is disabled
Author

ok, my bad - it needed apc.enable_cli=1 config setting to show up in cli.
also the arch deps in the documentations have to be updated, since arch also requires php-sodium to make 4get work.
thank you for taking your time on resoling this issue

ok, my bad - it needed apc.enable_cli=1 config setting to show up in cli. also the arch deps in the documentations have to be updated, since arch also requires php-sodium to make 4get work. thank you for taking your time on resoling this issue
jakka closed this issue 2025-07-12 06:36:55 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
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: lolcat/4get#83
No description provided.