minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/crs1ks6b3513ymkmxn8g4iivxz95gvkf-nixos-25.05.813814.ac62194c3917/nixos/nixos/tests/php
References a loopback HTTP URLCalls PHP phpinfo()
SHA-2564ae875eb2e2fcc376afcd8377d11297e7cd37d9e6c2dced5a1ea004e8b577dce
MaleculeH₂(CmOs)
Evidence
⋯13 lines
14 virtualHosts."phpfpm" =
15 let
16 testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
17 in
18 {
19 root = "${testdir}/web";
20 locations."~ \\.php$".extraConfig = ''
21 …
55:31… luated PHP back
56 response = machine.succeed("curl -fvvv -s http://127.0.0.1:80/")
57 assert "PHP Version ${php.version}" in response, "PHP version not detected"
58
59 # Check so we have database and some other extensions loaded
60 for ext in ["json", "opcache", "pdo_mysql", "pdo_pgsql", "pdo_sqlite", "apcu"]:
61 assert ex …