PHP-FPM - "IntlException이 발생했습니다."

PHP-FPM - "IntlException이 발생했습니다."

OpenBSD 7.3에 php-8.1.23, php-fpm 및 php-intl-8.1.23을 올바르게 설치했습니다.

다음 코드를 사용하여 로컬로 파일을 생성하고 PHP를 사용하여 실행하면

$example_var = new Collate('en_US');

오류는 표시되지 않지만 fastcgi를 php_fpm에 전달하는 웹 서버에서 제공하는 index.php 파일에 쓰면 다음 오류가 발생합니다.

023/09/08 19:48:58 [error] 83128#0: *73 FastCGI sent in stderr: "PHP message: Default exception handler: Exception - Constructor failed Debug:
Error code: generalexceptionmessage
* line 75 of /lib/classes/collator.php: IntlException thrown
* line 75 of /lib/classes/collator.php: call to Collator->__construct()
* line 188 of /lib/classes/collator.php: call to core_collator::ensure_collator_available()
* line 263 of /lib/classes/collator.php: call to core_collator::asort()
* line 303 of /lib/classes/event/manager.php: call to core_collator::asort_objects_by_property()
* line 234 of /lib/classes/event/manager.php: call to core\event\manager::order_all_observers()
* line 103 of /lib/classes/event/manager.php: call to core\event\manager::init_all_observers()
* line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
* line 795 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
* line 3670 of /course/lib.php: call to core\event\base->trigger()
* line 99 of /index.php: call to course_view()" while reading response header from upstream, client: <address>, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: 

관련 정보