Skip to content

mod_harbour setup for Windows Xampp

FiveTech Software edited this page Jun 20, 2020 · 7 revisions

Xampp users:

Depending on the used Xampp version (32/64 bits) you need to copy two files from the folder mod_harbour\windows\win32 or mod_harbour\windows\win64

copy mod_harbour.so to c:\xampp\apache\modules\

copy libharbour.dll to c:\xampp\htdocs\

Copy these DLLs (bin folder inside the modharbour zip) to c:\Apache24\bin: libcurl-x64.dll, libcrypto-1_1-x64.dll and libssl-1_1-x64.dll If you are using Xampp, then copy the DLLs to C:\xampp\apache\bin

Then you have to edit c:\xampp\apache\conf\httpd.conf

LoadModule harbour_module modules/mod_harbour.so
<FilesMatch "\.(prg|hrb)$">
    SetEnv LIBHARBOUR "c:\xampp\htdocs\libharbour.dll" 
    SetHandler harbour
</FilesMatch>

(re)start Apache from the Xampp Control Panel

For easy of testing, copy all mod_harbour\samples to c:\xampp\htdocs\samples

From web browser go to: localhost/samples

Summary: Every time you udpate mod_harbour with git pull you must:

a) copy mod_harbour.so and libharbour.dll

b) copy mod_harbour\samples