mod_harbour what to install
- Otto
- Posts: 6404
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
mod_harbour what to install
Dear Antonio,
I have an APACHE server installed on a Windows SERVER system.
I have 32 and 64 bit APACHE.
What should I use and what do I have to install now for mod_harbour?
Thanks in advance and best regards
Otto
I have an APACHE server installed on a Windows SERVER system.
I have 32 and 64 bit APACHE.
What should I use and what do I have to install now for mod_harbour?
Thanks in advance and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- damianodec
- Posts: 422
- Joined: Wed Jun 06, 2007 2:58 pm
- Location: Italia
- Contact:
Re: mod_harbour what to install
+1
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
1. copy mod_harbour.so to c:\Apache24\modules\
2. copy libharbour.dll to c:\Apache24\htdocs\
3. Edit c:\Apache24\conf\httpd.conf and add these lines:
4. run c:\Apache24\bin\httpd.exe
5. From your browser go to localhost and check that apache is properly running
6. At c:\Apache24\htdocs create this symlink: (run cmd as administrator)
mklink /j modharbour_samples c:\mod_harbour\samples
7. From your browser go to localhost/modharbour_samples
8. click on the different examples
2. copy libharbour.dll to c:\Apache24\htdocs\
3. Edit c:\Apache24\conf\httpd.conf and add these lines:
Code: Select all | Expand
LoadModule harbour_module modules/mod_harbour.so
<FilesMatch "\.(prg|hrb)$">
SetHandler harbour
</FilesMatch>
4. run c:\Apache24\bin\httpd.exe
5. From your browser go to localhost and check that apache is properly running
6. At c:\Apache24\htdocs create this symlink: (run cmd as administrator)
mklink /j modharbour_samples c:\mod_harbour\samples
7. From your browser go to localhost/modharbour_samples
8. click on the different examples
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
You can run all published mod_harbour examples directly from here:
https://harbour.fourtech.es/modharbour_samples/
Don't miss to review sandbox.prg where you can write and execute your code on the web!:
https://harbour.fourtech.es/modharbour_samples/sandbox.prg
You can review the source code of all the examples from here:
https://github.com/FiveTechSoft/mod_harbour/tree/master/samples
https://harbour.fourtech.es/modharbour_samples/
Don't miss to review sandbox.prg where you can write and execute your code on the web!:
https://harbour.fourtech.es/modharbour_samples/sandbox.prg
You can review the source code of all the examples from here:
https://github.com/FiveTechSoft/mod_harbour/tree/master/samples
- Massimo Linossi
- Posts: 508
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: mod_harbour what to install
Hi Antonio.
Do you think that will be possible to use Advantage Database in the near future ?
Thanks a lot and many compliments for this great work.
Massimo
Do you think that will be possible to use Advantage Database in the near future ?
Thanks a lot and many compliments for this great work.
Massimo
- Otto
- Posts: 6404
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: mod_harbour what to install
Dear Antonio,
thank you.
Can we use 32 or 64 bit APACHE?
Thank you in advance
Otto
thank you.
Can we use 32 or 64 bit APACHE?
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
Otto,
If you use Windows 64 then use Apache 64. For Windows 32 use Apache 32.
Massimo,
Yes, it is possible. We can include any library inside mod_harbour so just need to include the ADS libs
I will try to build it and you test it
If you use Windows 64 then use Apache 64. For Windows 32 use Apache 32.
Massimo,
Yes, it is possible. We can include any library inside mod_harbour so just need to include the ADS libs
I will try to build it and you test it

- Otto
- Posts: 6404
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: mod_harbour what to install
Dear Antonio,
only to be sure. Is libharbour.dll the same for 32 and 64 bit APACHE Server?
Thank you in advance
Otto
only to be sure. Is libharbour.dll the same for 32 and 64 bit APACHE Server?
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
Otto,
No, the files are NOT the same for 32 bits and for 64 bits:
For 64 bits download the files from here:
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/mod_harbour.so
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/libharbour.dll
For 32 bits download the files from here:
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/mod_harbour.so
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/libharbour.dll
No, the files are NOT the same for 32 bits and for 64 bits:
For 64 bits download the files from here:
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/mod_harbour.so
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/libharbour.dll
For 32 bits download the files from here:
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/mod_harbour.so
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/libharbour.dll
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
Wow amazing. Antonio Is modharbour safe to provide a external custumers access? A external user can execute or change a prg in apache server? Thank you!
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: mod_harbour what to install
It is safe if you know what you are doing 
You need some level of expertise to properly manage folders and files permissions and to properly configure Apache

You need some level of expertise to properly manage folders and files permissions and to properly configure Apache
Re: mod_harbour what to install
Antonio Linares wrote:It is safe if you know what you are doing
You need some level of expertise to properly manage folders and files permissions and to properly configure Apache
Ok, thank you!
I try with apache and the browser give this error if I type the address http://localhost/modharbour_samples/
Forbidden
You don't have permission to access /modharbour_samples/ on this server.
When i execute httpd:
C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd
httpd: Syntax error on line 494 of C:/Program Files/Apache Software Foundation/A
pache2.2/conf/httpd.conf: API module structure 'harbour_module' in file C:/Progr
am Files/Apache Software Foundation/Apache2.2/modules/mod_harbour.so is garbled
- expected signature 41503232 but saw 41503234 - perhaps this is not an Apache m
odule DSO, or was compiled for a different Apache version?
- Otto
- Posts: 6404
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: mod_harbour what to install
Dear Antonio,
copy libharbour.dll into c:\Apache24\htdocs\
I do not have htdocs inside apache.
My htdocs is at the same level as apache.
c:\xampp\apache\
c:\xampp\htdocs\
Should I create c:\xampp\apache\htdocs.
I see that all the other DLL-files are inside the c:\xampp\apache\bin folder.
Thank you in advance
Otto
copy libharbour.dll into c:\Apache24\htdocs\
I do not have htdocs inside apache.
My htdocs is at the same level as apache.
c:\xampp\apache\
c:\xampp\htdocs\
Should I create c:\xampp\apache\htdocs.
I see that all the other DLL-files are inside the c:\xampp\apache\bin folder.
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
Re: mod_harbour what to install
Otto wrote:Dear Antonio,
copy libharbour.dll into c:\Apache24\htdocs\
I do not have htdocs inside apache.
My htdocs is at the same level as apache.
c:\xampp\apache\
c:\xampp\htdocs\
Should I create c:\xampp\apache\htdocs.
I see that all the other DLL-files are inside the c:\xampp\apache\bin folder.
Thank you in advance
Otto
Otto, not create c:\xampp\apache\htdocs
Use c:\xampp\htdocs\ for copy libharbour.dll
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces