Code
LoadModule {$php}_module "{$path}/{$php_dir}/{$php}apache2_4.dll"
PHPIniDir "{$path}/{$php_dir}"
#LoadFile "{$path}/{$php_dir}/php7ts.dll"
LoadFile "{$path}/{$php_dir}/libpq.dll"
SetEnv TMP "{$path}/tmp"
<IfModule fcgid_module>
FcgidInitialEnv PATH "{$path}/{$php_dir};C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "{$path}/tmp"
FcgidInitialEnv TMP "{$path}/tmp"
FcgidInitialEnv windir "C:/Windows"
FcgidIOTimeout 64
FcgidConnectTimeout 16
FcgidMaxRequestsPerProcess 1000
FcgidMaxProcesses 3
FcgidMaxRequestLen 8131072
# Location php.ini:
FcgidInitialEnv PHPRC "{$path}/{$php_dir}"
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
<Files ~ "\.php$">
Options Indexes FollowSymLinks ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "{$path}/{$php_dir}/php-cgi.exe" .php
</Files>
</IfModule>