In reply to @stotes:matrix.org
I'm currently facing an issue with registering the php74Extensions.redis in my NixOS environment, and I'm seeking some guidance to resolve it.
I'm able to get xdebug to correctly register with the zend_extension = "${php.php74Extensions.xdebug}/lib/php/extensions/xdebug.so" and I've can see the redis.so exists in the nixstore path /nix/store/hnjkll3gvx7nm8i7vm1mc1cpa4b1p3lh-php-redis-5.3.4/lib/php/extensions/ for the php74Extensions.redis package. However phpinfo fails to register the redis package (xdebug is showing as expected and changed to the config or removing the xdebug.so entry reflect the phpinfo.)
Here's a brief overview of my configuration:
configuration.nix:
{ config, pkgs, lib, ... }:
let
php = import
(builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/2766f77c32e171a04d59b636a91083bae862274e.tar.gz"; #7.4.29 php
})
{ };
in
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
(import /home/stotes/nix/server/nginx-php.nix { inherit config php lib pkgs; })
];
# ... continues
}
nginx-php.nix:
{ config, pkgs, lib, php, ... }:
{
environment.systemPackages = with php; [
php.php74
php.phpPackages.composer
php.php74Extensions.pdo
php.php74Extensions.redis
php.php74Extensions.xdebug
];
services.phpfpm.phpOptions = ''
date.timezone = Australia/Brisbane
extension = "${php.php74Extensions.redis}/lib/php/extensions/redis.so"
zend_extension = "${php.php74Extensions.xdebug}/lib/php/extensions/xdebug.so"
'';
}
nix-created php.ini entries:
date.timezone = Australia/Brisbane
extension = "/nix/store/hnjkll3gvx7nm8i7vm1mc1cpa4b1p3lh-php-redis-5.3.4/lib/php/extensions/redis.so"
zend_extension = "/nix/store/hsprflbbk5a0hqaysm7vaspqmn2l1nyg-php-xdebug-3.0.4/lib/php/extensions/xdebug.so"
Despite my configuration, the php74Extensions.redis package is not registering as expected. I've followed the NixOS documentation and community forums but couldn't find a solution. Can someone please guide me on what might be causing this issue or any steps I can take to troubleshoot it further?
Any help or insights would be greatly appreciated. Thank you in advance for your assistance!
replied on https://discourse.nixos.org/t/issue-with-registering-the-phpextensions-redis/35795/2