Unable to complete install of Matomo in IIS/Windows Server 2022

App version: Matomo 5.1.1
PHP version: 8.3.11

I followed the instructions for setting up & configuring MySQL, PHP, & IIS on a Windows Server.

I extracted all the files from matomo.zip into C:\inetpub\wwwroot

I updated permissions so that the “IIS AppPool\DefaultAppPool” account has read/write access to the entire wwwroot folder and its subfolders, including the config folder, as you can see from the results of the System Check:

Directories with write access:

:heavy_check_mark: $DOC_ROOT\tmp :heavy_check_mark: $DOC_ROOT\tmp\assets :heavy_check_mark: $DOC_ROOT\tmp\cache :heavy_check_mark: $DOC_ROOT\tmp\climulti :heavy_check_mark: $DOC_ROOT\tmp\latest :heavy_check_mark: $DOC_ROOT\tmp\logs :heavy_check_mark: $DOC_ROOT\tmp\sessions :heavy_check_mark: $DOC_ROOT\tmp\tcpdf :heavy_check_mark: $DOC_ROOT\tmp\templates_c :heavy_check_mark: $DOC_ROOT\config

The problem I am running into is that when I run the System Check, I am unable to proceed because I get the error “Could not initialize HTTPS. Connections to matomo.org use HTTPS by default for security. Please make sure that HTTPS works on your environment or enable the option force_matomo_http_request.” But I cannot enable that option because the config.ini.php file does not exist in the “C:\inetpub\wwwroot\config” directory.

Please let me know if I am doing something wrong or if there is a way to get past this so I can finish the setup.

I figured it out!
In the php.ini file I already had
extension=php_openssl.dll
and it did not work, but when I uncommented
extension=openssl
and reloaded IIS, the error cleared.