windows
I downloaded apache 2.4 x64 zip; copied to: D:\Apache24-devel
https://www.apachelounge.com/download/
I downloaded php 8.3 threadsafe x64 zip; copied to D:\php-8-ts
Mind, in paths below I use "/..." without drive letter "D:" because I installed/extracted Apache and PHP on the same drive letter "D:".
In Apache conf/httpd.conf:
LoadModule php_module "/php-8-ts/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
<FilesMatch \.(php$|php3)>
SetHandler application/x-httpd-php
</FilesMatch>
# configure the path to php.ini
PHPIniDir "/php-8-ts/"
In php-8-ts/php.ini:
extension=odbc
extension_dir = "D:/php-8-ts/ext"
For configuration check (odbc) create:
D:/Apache24-devel/htdocs/dirX/phpinfo.php:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
Check out:
> D:
> cd D:\Apache24-devel
> bin\httpd.exe
http://localhost/dirX/phpinfo.php