A mod_harbour for Apache

2,585 views
Skip to first unread message

Antonio Linares

unread,
May 15, 2019, 11:22:24 AM5/15/19
to Harbour Users
Dear friends,

Here you have an initial test for the implementation of a mod_harbour for Apache:


Please review the instructions to build it and how to install it on Apache

Tests have been done on Apache for Windows only for now

Free Microsoft Visual Studio Community has been used to build it. No need to install Perl, neither apxs.

Next step is to link the Harbour libs into mod_harbour.dll and to run the Harbour virtual machine.

Harbour power! ;-)


best regards

Antonio Linares


Itamar Lins

unread,
May 15, 2019, 12:17:20 PM5/15/19
to Harbour Users
Hi!

Is possible run .HRB files ?
To run .prg I use shebang technics only with hbrun.exe Works fine Linux/Windows...


Best regards,
Itamar M. Lins Jr.

Antonio Linares

unread,
May 15, 2019, 2:23:58 PM5/15/19
to Harbour Users
The Harbour virtual machine is already working from Apache ;-)

function Main()

   AP_RPUTS( "Harbour power!" )

return nil
See how the Harbour virtual machine is invoked from the mod_harbour:
static int harbour_handler( request_rec * r )
{
   _r = r;

   if( ! r->handler || strcmp( r->handler, "harbour-handler" ) ) 
      return DECLINED;
   
   ap_rprintf( r, "called file: %s\n\n", r->filename );
   
   if( r->args ) 
      ap_rprintf( r, "Provided arguments: %s", r->args );
   
   hb_vmInit( HB_TRUE );
   
   return OK;
}
See how the Harbour code runs from Apache:
image.png
Everything included in GitHub including the mod_harbour.dll:


best regards,

Antonio Linares

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/57a48477-016d-4637-9a03-2d2695f97b14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 16, 2019, 4:03:37 AM5/16/19
to Harbour Users
image.png
--
Antonio Linares
www.fivetechsoft.com

Mario H. Sabado

unread,
May 16, 2019, 4:24:31 AM5/16/19
to 'elch' via Harbour Users
Thanks Antonio for this... very interesting and may fill the gap for the web development using Harbour.

Best regards,
Mario

You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANAUezBLAYUFZNdiQp57chnngLkVSaTJqOi%3DQtrKV4bJ0VWtpw%40mail.gmail.com.

Antonio Linares

unread,
May 16, 2019, 4:40:20 AM5/16/19
to Harbour Users

Antonio Linares

unread,
May 16, 2019, 5:03:58 AM5/16/19
to Harbour Users

Serge Girard

unread,
May 16, 2019, 7:20:39 AM5/16/19
to Harbour Users
Antonio,

I get this error when executing httpd.exe: This version of C: \ apache24 \ bin \ httpd.exe is not compatible with the Windows version that is running. Check the 
System information from your computer whether you need an x86 (32 bit) or x64 (64 bit) version of the program. 


I have W7 Pro-SP1 Intel Core 2 Duo CPU. Where/how can I get the right version?

Serge


Op woensdag 15 mei 2019 17:22:24 UTC+2 schreef Antonio Linares:

Antonio Linares

unread,
May 16, 2019, 8:53:57 AM5/16/19
to harbou...@googlegroups.com
Are you using Windows 32 bits or 64 bits ? Then choose Apache 32 or 64

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Antonio Linares
www.fivetechsoft.com

Serge Girard

unread,
May 16, 2019, 9:57:29 AM5/16/19
to Harbour Users
OK. I downloaded https://home.apache.org/~steffenal/VC15/binaries/httpd-2.4.39-win32-VC15.zip (please mention on your wiki page!)
Now I got this error:

C:/apache24/conf/httpd.conf: Cannot load modules/mod_harbour.so into server: %1 is not a legal Win-32 appl.

Serge

Op donderdag 16 mei 2019 14:53:57 UTC+2 schreef Antonio Linares:
Are you using Windows 32 bits or 64 bits ? Then choose Apache 32 or 64
El El jue, 16 may 2019 a las 13:20, Serge Girard <s...@pass-sys.be> escribió:
Antonio,

I get this error when executing httpd.exe: This version of C: \ apache24 \ bin \ httpd.exe is not compatible with the Windows version that is running. Check the 
System information from your computer whether you need an x86 (32 bit) or x64 (64 bit) version of the program. 


I have W7 Pro-SP1 Intel Core 2 Duo CPU. Where/how can I get the right version?

Serge


Op woensdag 15 mei 2019 17:22:24 UTC+2 schreef Antonio Linares:
Dear friends,

Here you have an initial test for the implementation of a mod_harbour for Apache:


Please review the instructions to build it and how to install it on Apache

Tests have been done on Apache for Windows only for now

Free Microsoft Visual Studio Community has been used to build it. No need to install Perl, neither apxs.

Next step is to link the Harbour libs into mod_harbour.dll and to run the Harbour virtual machine.

Harbour power! ;-)


best regards

Antonio Linares


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 16, 2019, 12:31:48 PM5/16/19
to Harbour Users
Serge,

We are building the 32 bits version, current one is 64 bits.

It will be available today, and we will provide you here the url to download it, thanks

best regards

Antonio Linares

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/20de592f-0d67-448a-94c9-ac96aad8f769%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Serge Girard

unread,
May 16, 2019, 12:36:07 PM5/16/19
to Harbour Users
Great !

Op donderdag 16 mei 2019 18:31:48 UTC+2 schreef Antonio Linares:


--
Antonio Linares
www.fivetechsoft.com

CNavarro

unread,
May 16, 2019, 12:47:49 PM5/16/19
to Harbour Users
Serge, added to repository version for 32 bits
Please rename to mod_harbour_32.so to mod_harbour.so and place to modules folder of apache
Try and tell me
Thanks

Antonio Linares

unread,
May 16, 2019, 12:53:55 PM5/16/19
to Harbour Users


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/472b2b3b-dc64-4b4a-b62d-2ba078d2511b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

carloskds

unread,
May 16, 2019, 1:12:04 PM5/16/19
to Harbour Users
Antonio, plase for apache/Linux :-)


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 16, 2019, 1:23:06 PM5/16/19
to Harbour Users
Carlos,

its coming real soon ... ;-)


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/46661c57-d19b-49d4-baf5-b034f7bb7619%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Serge Girard

unread,
May 16, 2019, 2:19:02 PM5/16/19
to Harbour Users
Thanks Antonio, it works fine Antonio : Harbour power Harbour 3.2.0dev (r1904111533)

Serge

Op donderdag 16 mei 2019 19:23:06 UTC+2 schreef Antonio Linares:


--
Antonio Linares
www.fivetechsoft.com

elch

unread,
May 16, 2019, 2:33:10 PM5/16/19
to Harbour Users
Hi Antonio,

:
The Harbour virtual machine is already working from Apache ;-)
check this about hb_compileFromBuf():

Tl;Dr;: it makes your work pure GPL without the Harbour exception,
and also all software using that ...

https://groups.google.com/d/msg/harbour-users/e_OJBXXu4aQ/4rWfP1kyt9UJ

I do not want to disturb anybody fun,
but please stay correct.

---
P.S.
i don't see anywhere a hb_vmQuit() ...

BEST! regards
elch

Antonio Linares

unread,
May 16, 2019, 3:57:43 PM5/16/19
to Harbour Users
Dear Elch,

We missed the hb_vmQuit() call, thanks!

best regards

Antonio Linares

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Eric Lendvai

unread,
May 16, 2019, 11:41:16 PM5/16/19
to Harbour Users
Hello Antonio,

If I am correct, this is basically FastCGI under Apache?  Am I correct ?

I had tried to do that for a while but was waiting on a college to finialize this. But this would be even better!

What is the license?

This seems to be a perfect subject for an article on harbour.wiki !  Let me know if you would like me to prep for one, or if you would like to make one yourself.

Thank you, Eric

Antonio Linares

unread,
May 17, 2019, 2:19:57 AM5/17/19
to Harbour Users
Dear Eric,

> If I am correct, this is basically FastCGI under Apache?  Am I correct ?

It is a mod for Apache. It is not FastCGI yet. We need to increase its speed, surely it has to be ported to FastCGI or improve it somehow.

> What is the license?

Totally free (freedom, free of cost, do whatever you want with it, etc.) and respecting the Harbour licenses that applies to it.

> This seems to be a perfect subject for an article on harbour.wiki !  Let me know if you would like me to prep for one, or if you would like to make one yourself.

We are actually totally focused on building it for Linux and also trying to speed it up. So for now, no time to write an article for it. Feel free to write about it, promote it, etc

Hopefully more Harbour users join efforts to this development with the sole aim to improve it and make it available to everybody that may want or need to use it.

best regards

Antonio Linares

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Domenico D'Oria

unread,
May 17, 2019, 2:54:46 AM5/17/19
to Harbour Users
Hi Antonio and do not forget FreeBSD, sure when for others OS works.

Ola Antonio y no te olvide de FreeBSD, tambien cuando todo es listo por los otros sistemas operativos.

Thank

Domenico

Antonio Linares

unread,
May 17, 2019, 5:56:30 AM5/17/19
to Harbour Users
We are trying to build the Apache mod_harbour for Linux from the Windows 10 bash...  !!!

Using Ubuntu 18.04 failed...

Also trying it now with Ubuntu 19.04

Want to help with it ? Please read the instructions here:


best regards

Antonio Linares
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 17, 2019, 6:22:30 AM5/17/19
to Harbour Users
Same problem on Windows 10 bash (well it is Ubuntu 18.04)

We use apxs to build a sample mod:

apxs -g -n harbour

cd harbour

make all

cd .libs   (notice the dot before libs)

nm mod_harbour.so 

and there we get the unresolved externals:

0000000000000528 T _init
                 U ap_hook_handler
                 U ap_rwrite
0000000000201088 b completed.7697

apxs fails itself to create its own example. And it does not warn about anything missing.

Any help is really welcome

Antonio





--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 17, 2019, 6:47:09 AM5/17/19
to Harbour Users
Problem solved on Ubuntu 19.04 :-)

Moving forward...
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 17, 2019, 8:24:11 AM5/17/19
to Harbour Users
Solved on the Windows 10 bash too ;-)

Deailed instructions soon

image.png

regards

Antonio
--
Antonio Linares
www.fivetechsoft.com

fdaniele

unread,
May 17, 2019, 9:49:55 AM5/17/19
to Harbour Users
excuse me
i do all instructions without problems but the test.prg not "start", ony read the file, like a .txt

// Please copy this file to c:\Apache24\htdocs\
// From your web browser go to localhost/test.prg

#xcommand ? <cText> => AP_RPuts( <cText> )
#define CRLF hb_OsNewLine()
function Test()
   ? "Harbour power" + CRLF + CRLF
   ? Version()
return nil



the image is allowed.


my system is a win 7 64 bit and no apache "pure" and not wamp  64 bit works

san someone help me ?

thanks
Cattura.JPG

Serge Girard

unread,
May 17, 2019, 11:52:36 AM5/17/19
to Harbour Users
You first have to start httpd in the apache24/bin folder.
Antonio, could you please edit wiki between 4 and 5!

Serge

Op vrijdag 17 mei 2019 15:49:55 UTC+2 schreef fdaniele:

Serge Girard

unread,
May 17, 2019, 12:27:00 PM5/17/19
to Harbour Users
Antonio ,

Pressing F5 results in some errors (but eventally goes on):

Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:5005C8FA
    EAX:00000000  EBX:00000000  ECX:00000001  EDX:01AFFA90
    ESI:5010F650  EDI:009344B4  EBP:500E8EC4
    CS:EIP:001B:5005C8FA  SS:ESP:0023:0327FBEC
    DS:0023  ES:0023  FS:003B  GS:0000
    Flags:00010202
    Exception Parameters: 00000000 0000000C
    CS:EIP: 8B 44 C8 04 5E C3 B8 2C 48 13 50 C3 CC CC CC CC
    SS:ESP: 00000000 50032E1B 5010F650 00000001 00001100 01AFFA90 00000000 00000000 5006020D 00000003 00000000 00000000 00000000 00000000 500614D9 00000001

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...

Modules:
00E40000 0000B000 C:\apache24\bin\httpd.exe
77A60000 00142000 C:\Windows\SYSTEM32\ntdll.dll
6CF30000 00010000 C:\Program Files\AVG\Antivirus\aswhook.dll
76670000 000D5000 C:\Windows\system32\kernel32.dll
75A30000 0004B000 C:\Windows\system32\KERNELBASE.dll
60340000 0005E000 C:\apache24\bin\libhttpd.dll
5EAF0000 00059000 C:\apache24\bin\pcre.dll
707E0000 00013000 C:\Windows\system32\VCRUNTIME140.dll
70170000 00004000 C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
70090000 000E0000 C:\Windows\system32\ucrtbase.DLL
70080000 00003000 C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll
70070000 00003000 C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll
70060000 00003000 C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll
70050000 00003000 C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll
70040000 00003000 C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll
70030000 00003000 C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll
70020000 00003000 C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll
70010000 00004000 C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll
70000000 00004000 C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll
6FFF0000 00004000 C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll
75F40000 00035000 C:\Windows\system32\WS2_32.dll
76990000 000AC000 C:\Windows\system32\msvcrt.dll
75D40000 000A2000 C:\Windows\system32\RPCRT4.dll
75DF0000 00006000 C:\Windows\system32\NSI.dll
75C90000 000A1000 C:\Windows\system32\ADVAPI32.dll
768D0000 00019000 C:\Windows\SYSTEM32\sechost.dll
6D720000 0003B000 C:\apache24\bin\libaprutil-1.dll
73E00000 0000B000 C:\apache24\bin\libapriconv-1.dll
6D340000 0002A000 C:\apache24\bin\libapr-1.dll
75150000 0003C000 C:\Windows\system32\MSWSOCK.dll
75E70000 000C9000 C:\Windows\system32\user32.dll
76820000 0004E000 C:\Windows\system32\GDI32.dll
75E60000 0000A000 C:\Windows\system32\LPK.dll
76BA0000 0009D000 C:\Windows\system32\USP10.dll
76C40000 00C4C000 C:\Windows\system32\SHELL32.dll
76870000 00057000 C:\Windows\system32\SHLWAPI.dll
6FF90000 00003000 C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll
6FFA0000 00003000 C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll
6F310000 00003000 C:\Windows\system32\api-ms-win-crt-conio-l1-1-0.dll
6FFD0000 00005000 C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll
6FFB0000 00003000 C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll
73B00000 00005000 C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll
6FFE0000 00003000 C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll
77C30000 0001F000 C:\Windows\system32\IMM32.DLL
76750000 000CD000 C:\Windows\system32\MSCTF.dll
752F0000 00017000 C:\Windows\system32\CRYPTSP.dll
74E60000 0003B000 C:\Windows\system32\rsaenh.dll
75610000 0000C000 C:\Windows\system32\CRYPTBASE.dll
75140000 00006000 C:\Windows\System32\wship6.dll
74CE0000 00005000 C:\Windows\System32\wshtcpip.dll
73800000 00010000 C:\Windows\system32\NLAapi.dll
6ED70000 00010000 C:\Windows\system32\napinsp.dll
6ED50000 00012000 C:\Windows\system32\pnrpnsp.dll
6ED20000 00021000 C:\Program Files\Bonjour\mdnsNSP.dll
730A0000 0001C000 C:\Windows\system32\Iphlpapi.DLL
73090000 00007000 C:\Windows\system32\WINNSI.DLL
74F60000 00044000 C:\Windows\system32\DNSAPI.dll
6ED10000 00008000 C:\Windows\System32\winrnr.dll
6ECE0000 00027000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
75B30000 00005000 C:\Windows\system32\PSAPI.DLL
6ECD0000 00006000 C:\Windows\system32\rasadhlp.dll
72F50000 00038000 C:\Windows\System32\fwpuclnt.dll
73B10000 00007000 C:\apache24\modules\mod_actions.so
735B0000 00008000 C:\apache24\modules\mod_alias.so
6DAE0000 00006000 C:\apache24\modules\mod_allowmethods.so
6DAC0000 00006000 C:\apache24\modules\mod_asis.so
6DAB0000 00008000 C:\apache24\modules\mod_auth_basic.so
6D760000 00007000 C:\apache24\modules\mod_authn_core.so
6D710000 00007000 C:\apache24\modules\mod_authn_file.so
6D6F0000 00008000 C:\apache24\modules\mod_authz_core.so
6D500000 00007000 C:\apache24\modules\mod_authz_groupfile.so
6D4F0000 00007000 C:\apache24\modules\mod_authz_host.so
6D4E0000 00006000 C:\apache24\modules\mod_authz_user.so
6D4D0000 0000C000 C:\apache24\modules\mod_autoindex.so
6D4C0000 00009000 C:\apache24\modules\mod_cgi.so
6D4B0000 00007000 C:\apache24\modules\mod_dir.so
6D4A0000 00006000 C:\apache24\modules\mod_env.so
6D3F0000 0000D000 C:\apache24\modules\mod_include.so
6D3E0000 0000A000 C:\apache24\modules\mod_isapi.so
6C630000 0000A000 C:\apache24\modules\mod_log_config.so
6C620000 00008000 C:\apache24\modules\mod_mime.so
6C3E0000 0000B000 C:\apache24\modules\mod_negotiation.so
6C3D0000 00007000 C:\apache24\modules\mod_setenvif.so
50030000 00115000 C:\apache24\modules\mod_harbour.so
72240000 00032000 C:\Windows\system32\WINMM.dll


Called from ERRORBLOCK(0)
Called from ERRORSYS(0) in ../../../errsys.prg
Called from __HBVMINIT(0) in ../../../harbinit.prg
Serge

Op woensdag 15 mei 2019 17:22:24 UTC+2 schreef Antonio Linares:
Dear friends,

Here you have an initial test for the implementation of a mod_harbour for Apache:


Please review the instructions to build it and how to install it on Apache

Tests have been done on Apache for Windows only for now

Free Microsoft Visual Studio Community has been used to build it. No need to install Perl, neither apxs.

Next step is to link the Harbour libs into mod_harbour.dll and to run the Harbour virtual machine.

Harbour power! ;-)


fdaniele

unread,
May 17, 2019, 12:33:21 PM5/17/19
to Harbour Users
sorry, i forget 

AddHandler harbour-handler .prg 

thanks and complements

best regards

Daniele

Antonio Linares

unread,
May 17, 2019, 12:34:53 PM5/17/19
to Harbour Users
Serge,

Wiki edited, thanks!

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Lailton Fernando Mariano

unread,
May 17, 2019, 2:26:21 PM5/17/19
to Harbour Users
Hi Antonio,

Congratulation!

It is really amazing.

I have success to compile it for MacOS, I will add to WIKI the process.

It open more possibilities for Harbour :D
I have a lot of ideas to use it.

Thank you for you job.

Harbour the Power!
Serge,

Wiki edited, thanks!


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.


--
Antonio Linares
www.fivetechsoft.com

carloskds

unread,
May 17, 2019, 5:53:31 PM5/17/19
to Harbour Users
Antonio, Impresionante!
salu2
 
// Please copy this file to c:\Apache24\htdocs\
// From your web browser go to localhost/test.prg

#xcommand ? <cText> => AP_RPuts( <cText> )

#define CRLF "</br>"//hb_OsNewLine()

function Test()
   local i
   ?MyStyle1()
   ?MyStyle2()
   ?MyStyle3()
   ?"<div class='header'>"
   ?"<h1>HARBOUR POWER</h1>" + CRLF
   ?"<p>My supercool header</p>"
   ?"</div>"
   ? "<span class='title3'>" + Version() + "</span>" + CRLF + CRLF
   for i=1 to 10
     ?"Linea:<span class='title2'>" + hb_ntos(i) + "</span>"+ CRLF
   next
return nil

function MyStyle1()
 local c
 c := ".header {"
 c += "  padding: 60px;"
 c += "  text-align: center;"
 c += "  background: #1abc9c;"
 c += "  color: white;"
 c += "  font-size: 30px;"
 c += "}"
return "<style>" + c + "</style>"

function MyStyle2()
 local c
 c := ".title2 {"
 c += "color: DarkGreen;"
 c += "font-size: 18px;"
 c += "}"
return "<style>" + c + "</style>"

function MyStyle3()
 local c
 c := ".title3 {"
 c += " font-weight: bold;"
 c += " color: Navy;"
 c += " font-size: 20px;"
 c += "}"
return "<style>" + c + "</style>"
 

Mel Smith

unread,
May 17, 2019, 7:50:42 PM5/17/19
to Harbour Users
Hi Antonio:



On Thursday, May 16, 2019 at 10:53:55 AM UTC-6, Antonio Linares wrote:

I loaded (apparently) the 32-bit version of harbour.so, but I still have this error (see attached .png file) on my Win 10 64-bit Asus Laptop:


httperr.png

Antonio Linares

unread,
May 17, 2019, 8:27:43 PM5/17/19
to Harbour Users
Mel,

What source code do you have at line 187 in the httpd.conf file ?

Have you installed Apache 32 or 64 bits ?

best regards

Antonio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Mel Smith

unread,
May 17, 2019, 11:15:51 PM5/17/19
to Harbour Users


On Friday, May 17, 2019 at 6:27:43 PM UTC-6, Antonio Linares wrote:
Mel,

What source code do you have at line 187 in the httpd.conf file ?

Have you installed Apache 32 or 64 bits ?

best regards

Antonio


Here are the set of lines near line 187 in c:\apache24\conf\httpd.conf

#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so

LoadModule harbour_module modules/mod_harbour.so    (This is line 187)


The file 'mod_harbour.so' is sized at 1,114,624 bytes.

-Mel



El sáb., 18 may. 2019 a las 1:50, Mel Smith (<meds...@gmail.com>) escribió:
Hi Antonio:



On Thursday, May 16, 2019 at 10:53:55 AM UTC-6, Antonio Linares wrote:

I loaded (apparently) the 32-bit version of harbour.so, but I still have this error (see attached .png file) on my Win 10 64-bit Asus Laptop:


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.


--
Antonio Linares
www.fivetechsoft.com

Mel Smith

unread,
May 17, 2019, 11:24:14 PM5/17/19
to Harbour Users


On Friday, May 17, 2019 at 9:15:51 PM UTC-6, Mel Smith wrote:


On Friday, May 17, 2019 at 6:27:43 PM UTC-6, Antonio Linares wrote:
Mel,

What source code do you have at line 187 in the httpd.conf file ?

Have you installed Apache 32 or 64 bits ?

best regards

Antonio


Here are the set of lines near line 187 in c:\apache24\conf\httpd.conf

#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so

LoadModule harbour_module modules/mod_harbour.so    (This is line 187)


The file 'mod_harbour.so' is sized at 1,114,624 bytes. But is this the 32-bit version or the 64-bit version. (I'm confused here)
 
-Mel


Addendum:
  I downloaded the : httpd-2.4.39-win64-VC15.zip and 'X'-tracted the contents over the top of my old 2015. version of Apache24.
   I don't know where the 32-bit version is located but will go looking for it. 

-Mel

Mel Smith

unread,
May 17, 2019, 11:49:36 PM5/17/19
to Harbour Users
Hi Antonio:

   it works fine now -- after downloading the 32-bit Apache zip file.

Great Work and Thank You !

Now I have to see if I can use this mod_harbour.so within my old Apache 2.2  server + Harbour CGI in whosaway.com (and two other web sites).  -- I haven't looked at my web site tool box for a couple of years now !
 Things just keep running smoothly :))

-Mel

Antonio Linares

unread,
May 18, 2019, 2:07:02 AM5/18/19
to Harbour Users
Mel,

Please don't use it for production yet. It needs to be improved and properly tested before that.

best regards

Antonio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/bd75cd4f-292b-450f-95b0-0f3622b83eee%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 18, 2019, 3:48:46 AM5/18/19
to Harbour Users
Very good news:

* Ubuntu version alredy working fine (and it has been developed using the Windows 10 bash! )

* Response time 1 second or less ;-)

Full source code available from here:


mod_harbour.so size is 26.568 bytes only!  The mod_harbour.so directly uses the libharbour.so.3.2.0 that Harbour make builds.

And what is really fine:

You can run Apache with the mod_harbour from your Windows 10 bash and test it from Windows on your web browser 

best regards

Antonio Linares
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 19, 2019, 1:07:10 AM5/19/19
to Harbour Users
mod_harbour.so for Ubuntu 18.04 (the one used from Windows 10 bash) is ready:

You may download the files and test them or follow the instructions to rebuild them yourself.


best regards

Antonio Linares
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 19, 2019, 1:17:44 AM5/19/19
to Harbour Users
It works really fast ;-)
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 19, 2019, 11:58:21 AM5/19/19
to Harbour Users
image.png
--
Antonio Linares
www.fivetechsoft.com

Azul Martin

unread,
May 20, 2019, 1:55:50 PM5/20/19
to Harbour Users
Hola Antonio

Magnifico trabajo voy a seguirlo muy de cerca para cambiar mis aplicaciones a harbour .

Como nos unidos al canal de slack?

Saludos
image.png


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.


--
Antonio Linares
www.fivetechsoft.com


--
Antonio Linares
www.fivetechsoft.com


--
Antonio Linares
www.fivetechsoft.com


--
Antonio Linares
www.fivetechsoft.com


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 20, 2019, 2:11:37 PM5/20/19
to Harbour Users


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/efe6a34d-6443-4f6f-aee2-5b6db76c331a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
May 20, 2019, 3:04:02 PM5/20/19
to harbou...@googlegroups.com
Le 20/05/2019 à 20:11, Antonio Linares a écrit :
> https://join.slack.com/t/harbourproject/shared_invite/enQtNjQwMTAxNzQyNTAwLWU1YjJlMmRjZjUyZDUxZTNiMmIzYTczZmM0NGQ4Y2RmOGNiMzliMjg3MGVkN2NlMzU2ZjY5ODQyM2ZkNzY0MWE

Slack refuse Firefox 66, and ask for downloading slack-desktop (54,2 Mo
oouuppss !!!)

A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 & Xu.buntu 16.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev
(2019-04-11 15:33) | Hw.Gui (2786)
------------------------------------------------------------------------

Alain Aupeix

unread,
May 20, 2019, 3:30:20 PM5/20/19
to harbou...@googlegroups.com
Le 20/05/2019 à 21:03, Alain Aupeix a écrit :
> Le 20/05/2019 à 20:11, Antonio Linares a écrit :
>> https://join.slack.com/t/harbourproject/shared_invite/enQtNjQwMTAxNzQyNTAwLWU1YjJlMmRjZjUyZDUxZTNiMmIzYTczZmM0NGQ4Y2RmOGNiMzliMjg3MGVkN2NlMzU2ZjY5ODQyM2ZkNzY0MWE
>>
>
> Slack refuse Firefox 66, and ask for downloading slack-desktop (54,2
> Mo oouuppss !!!)

I don't appreciate Slack appli, and I don't speak spanish, so ...

Antonio Linares

unread,
May 20, 2019, 3:55:05 PM5/20/19
to Harbour Users
Alain,

We provide support in both Spanish and English

anyhow I provide you support here or by email too

regards

Antonio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Eric Lendvai

unread,
May 21, 2019, 2:59:56 PM5/21/19
to Harbour Users
Hello Antonio,

Thank you for your reply.

I have 2 follow up questions:

1. Do you know when you will have a version that is native to Windows? The main reason I am asking this is so I can call COM objects and try to do some debugging using VSCODE from a Windows 10 machine.

 So it seems the mod_harbour method might be faster than FCGI, but since the Harbour code would run in the Apache process, it could be less secure than FCGI (crash wise). I also wonder how SQL connections could be cached with the mod_harbour way.

Thank you, Eric




On Thursday, May 16, 2019 at 11:19:57 PM UTC-7, Antonio Linares wrote:
Dear Eric,

> If I am correct, this is basically FastCGI under Apache?  Am I correct ?

It is a mod for Apache. It is not FastCGI yet. We need to increase its speed, surely it has to be ported to FastCGI or improve it somehow.

> What is the license?

Totally free (freedom, free of cost, do whatever you want with it, etc.) and respecting the Harbour licenses that applies to it.

> This seems to be a perfect subject for an article on harbour.wiki !  Let me know if you would like me to prep for one, or if you would like to make one yourself.

We are actually totally focused on building it for Linux and also trying to speed it up. So for now, no time to write an article for it. Feel free to write about it, promote it, etc

Hopefully more Harbour users join efforts to this development with the sole aim to improve it and make it available to everybody that may want or need to use it.

best regards

Antonio Linares


El vie., 17 may. 2019 a las 5:41, Eric Lendvai (<ericl...@gmail.com>) escribió:
Hello Antonio,

If I am correct, this is basically FastCGI under Apache?  Am I correct ?

I had tried to do that for a while but was waiting on a college to finialize this. But this would be even better!

What is the license?

This seems to be a perfect subject for an article on harbour.wiki !  Let me know if you would like me to prep for one, or if you would like to make one yourself.

Thank you, Eric



On Wednesday, May 15, 2019 at 8:22:24 AM UTC-7, Antonio Linares wrote:
Dear friends,

Here you have an initial test for the implementation of a mod_harbour for Apache:


Please review the instructions to build it and how to install it on Apache

Tests have been done on Apache for Windows only for now

Free Microsoft Visual Studio Community has been used to build it. No need to install Perl, neither apxs.

Next step is to link the Harbour libs into mod_harbour.dll and to run the Harbour virtual machine.

Harbour power! ;-)


best regards

Antonio Linares


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/e0e04a40-4e4a-4a1f-b6ab-3a54f2e26083%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 21, 2019, 4:29:15 PM5/21/19
to Harbour Users
#xcommand TEMPLATE => #pragma __cstream | AP_RPuts( Template( %s ) )

...

<div class="panel-body" style="padding:0px">
       <table class="table table-striped table-bordered" style="margin:0px">
          <thead>
            <tr>
               <?prg local cCols := ""
                     for n = 1 to FCount()
                        cCols += "<th>" + FieldName( n ) + "</n>"
                     next
                     return cCols ?>
            </tr>
       </thead>
          <tbody>
...

Embedding PRG code in TEMPLATE ... ENDTEXT

e1f87d2a-47d9-407d-a0c4-30bc4f162607.jpg



regards

Antonio

Antonio Linares

unread,
May 21, 2019, 4:46:38 PM5/21/19
to Harbour Users
Dear Eric,

1. We are actually focused on the Linux version development as it is much much faster than the current Windows version. Cristobal, from the mod Harbour team, is
working to port the work done in Linux to Windows.

2. In the Linux version of the mod we have taken a totally different architecture:

a) The mod is totally independent from Harbour. In fact, if libharbour.so.3.2.0 is not available, the mod simply warns you but it behaves nicely with apache.

b) Even if libharbour.so.3.2.0 is available, the mod check if it is the right version that provides a function hb_apache() (C level). If it is not the right one, the mod
again warns you but does not crash. The size of the mod harbour for Linux is 26.000 bytes aprox only. It flies :-)

These early days we are doing incredible progress. Actually you can edit your PRGs using your Windows source code editor, then select the PRG from the browser
and double click to execute it. We have been able to embed PRG code inside HTML code. 

Also we have started connecting to MySQL using the Harbour dynamic linking capabilities. This means that you can use external shared libraries without having
to rebuild or modify the mod.

Here you have an example:
local pLib := hb_LibLoad( "/usr/lib/x86_64-linux-gnu/libmysqlclient.so" )   
local hMySQL := hb_DynCall( { "mysql_init", pLib, 0 }, 0 )
etc.

We do need beta-testers to help with all these :-)

Full source code, wiki, examples, tips etc at:

best regards

Antonio Linares

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/a3e6f903-3c06-4369-83e5-4e2d0fcd0821%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Eric Lendvai

unread,
May 21, 2019, 7:13:38 PM5/21/19
to Harbour Users
Thanks for all the info.

I am new to slack and sadly I don't understand Spanish. Is there any features in Slack to auto-translate all the messages?

Thanks, Eric


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 21, 2019, 10:45:50 PM5/21/19
to Harbour Users
Eric,

All the important info, code, sharings, comments, etc, done in slack is being copied and organized into the mod wiki;


best regards

Antonio Linares

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/3b0132f2-177b-40c8-aa6a-44c17416b025%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 21, 2019, 11:25:19 PM5/21/19
to Harbour Users
image.png
image.png
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 21, 2019, 11:39:25 PM5/21/19
to Harbour Users

Antonio Linares

unread,
May 22, 2019, 12:46:34 AM5/22/19
to Harbour Users
Try the mod Harbour examples for yourself :-)


best regards

Antonio Linares
--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
May 22, 2019, 3:50:17 AM5/22/19
to harbou...@googlegroups.com
Le 22/05/2019 à 06:46, Antonio Linares a écrit :
> Try the mod Harbour examples for yourself :-)

Hi, my error when opening a dbf was just due to the fact I didn't give
the complete path, but the relative to the root of the site

For dbgen, it displays, but all the functions don't work ...

Perhaps not completelly done ?

Thanks

Antonio Linares

unread,
May 22, 2019, 4:18:39 AM5/22/19
to Harbour Users
Alain,

We are working to complete it 

regards

Antonio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
May 22, 2019, 4:28:59 AM5/22/19
to harbou...@googlegroups.com
Le 22/05/2019 à 09:50, Alain Aupeix a écrit :
> For dbgen, it displays, but all the functions don't work ...

But I use utf-8 encoded dbf, and displaying it is bad for data with
accents (I suppose it's dome windows encoding ?) ...

I tried to use hb_cdpSelect("UTF8"), but it doesn't help ...

Antonio Linares

unread,
May 22, 2019, 4:37:43 AM5/22/19
to Harbour Users
Pagination already working: Press Prev or Next, see the speed !!!


Alain, please be patient :-)

Install the mod, start to use it, provide feedback and help ;-)

best regards

Antonio 

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

plink86

unread,
May 22, 2019, 4:52:58 AM5/22/19
to Harbour Users
This can become a CRUD framework like:



On Wednesday, May 22, 2019 at 4:37:43 PM UTC+8, Antonio Linares wrote:
Pagination already working: Press Prev or Next, see the speed !!!


Alain, please be patient :-)

Install the mod, start to use it, provide feedback and help ;-)

best regards

Antonio 

El mié., 22 may. 2019 a las 10:29, Alain Aupeix (<alain...@wanadoo.fr>) escribió:
Le 22/05/2019 à 09:50, Alain Aupeix a écrit :
> For dbgen, it displays, but all the functions don't work ...

But I use utf-8 encoded dbf, and displaying it is bad for data with
accents (I suppose it's dome windows encoding ?) ...

I tried to use hb_cdpSelect("UTF8"), but it doesn't help ...
>
> Perhaps not completelly done ?
>
> Thanks
> A+


--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 & Xu.buntu 16.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev
(2019-04-11 15:33) | Hw.Gui (2786)
------------------------------------------------------------------------

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 22, 2019, 6:57:42 AM5/22/19
to Harbour Users
mod Harbour is finally the real Harbour for the web

A new era starts for all the Harbour developers...

Time to join the revolution and turn Harbour into the best web development tool

:-)


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/abc9b18c-363c-47e0-a1fa-b1fae31bc1d5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Andrzej P. Wozniak

unread,
May 22, 2019, 8:58:33 AM5/22/19
to harbou...@googlegroups.com
From: Antonio Linares <alin...@fivetechsoft.com>
Sent: Wednesday, May 22, 2019 6:46 AM

> Try the mod Harbour examples for yourself :-)
>
> http://cloud.backupsegur.es:8088/mod_harbour_examples/
>
> best regards
>
> Antonio Linares
> www.fivetechsoft.com

Well, Antonio, thanks, but…
Why are you resending all previous messages with pictures attached? We have
already seen them. You can easy put all the pictures on your server and send
links to them if you feel they are still helpful. You can even add better
description there…

APW

--
Regards from Poland
Andrzej P. Woźniak

Antonio Linares

unread,
May 22, 2019, 10:17:51 AM5/22/19
to Harbour Users
Dear Andrzej,

I just clicked on the answer button of gmail to this account. I am sorry that previous emails with attachments may have disturbed you.

It was not my intention and I apologize for it.

best regards

Antonio

Diego Fazio

unread,
May 22, 2019, 10:43:57 AM5/22/19
to Harbour Users
Hi Antonio, Could I build mod_harbour with MSYS32?

Thanks 
Diego.


El miércoles, 15 de mayo de 2019, 12:22:24 (UTC-3), Antonio Linares escribió:
Dear friends,

Here you have an initial test for the implementation of a mod_harbour for Apache:


Please review the instructions to build it and how to install it on Apache

Tests have been done on Apache for Windows only for now

Free Microsoft Visual Studio Community has been used to build it. No need to install Perl, neither apxs.

Next step is to link the Harbour libs into mod_harbour.dll and to run the Harbour virtual machine.

Harbour power! ;-)


Antonio Linares

unread,
May 22, 2019, 11:38:14 AM5/22/19
to Harbour Users
Dear Diego,

The current Linux version of the mod is much much faster than the Windows version. You can use the Linux version
from Windows 10 WSL (Windows SubSystem for Linux) downloading Ubuntu from the Windows Store.

I encourage you to test it from Linux as it is lightning fast. Anyhow as full source code is provided you may try
to build it for Windows using MSYS32.

regards

Antonio Linares

fdaniele

unread,
May 25, 2019, 6:36:29 AM5/25/19
to Harbour Users

Dear Mr. Linares

The work done by you is very very important

Customers are used to working and playing on the web and your work has given harbor what was missing ... a user interface that will please the customer.

I believe that all of us in the forum will have to help you make your project bigger than it is now

Thanks Antonio, from my heart

p.s. sorry for my english


Serge Girard

unread,
May 25, 2019, 9:28:10 AM5/25/19
to Harbour Users
Great work Antonio !

Somewhere you mentioned the need of testers. Count me in!

Serge


Op woensdag 15 mei 2019 17:22:24 UTC+2 schreef Antonio Linares:

Antonio Linares

unread,
May 25, 2019, 10:23:48 AM5/25/19
to Harbour Users
Dear Daniele, Serge and others,

You can test current mod_Harbour examples from here:

Full source is available from here:

It already supports Windows, OSX and Linux (Ubuntu, CentOS, OpenSuse comming)

You can easily install it on your Windows 10 bash using. Detailed explanation for this on the project wiki.

To help with the project please create a github account and fork the project (from the github project site click on fork)
then start creating more examples, enhancements, whatever you may find interesting to enhance the project, and finally
make a "pull request" from your GitHub forked mod_harbour. We will review your pull request and accept what is right
and properly working. This is the right way to contribute to the project.

Harbour for the Web is finally here. You wont believe how nice and simple is to use Harbour to create your professional webs.
MySQL support is already available. You can also use your DBFs directly on the web. PostGres support is comming and surely
much more support for other database engines in the next days.

Don't miss this historial oportunity to contribute in the development of the real Harbour for the web.
Thank you for your support and help. Surely we will organize a Harbour for the web developers conference in the next months
and we would love to see you there ;-)

mod Harbour 

Jayadev U

unread,
May 26, 2019, 9:21:31 AM5/26/19
to harbou...@googlegroups.com

Hi Antonio,

 

I am testing on Ubuntu 18.04.2 LTS Virtual Machine (32 bit).

 

I have executed the following commands from your wiki:

 

git clone https://github.com/fivetechsoft/mod_harbour

chmod +x ./mod_harbour/linux/go.sh

./mod_harbour/linux/go.sh

 

I get the following error:

 

apache2: Syntax error on line 228 of /etc/apache2/apache2.conf: Cannot load /usr/lib/apache2/modules/mod_harbour.so into server: /usr/lib/apache2/modules/mod_harbour.so: wrong ELF class: ELFCLASS64

Action 'restart' failed.

The Apache error log may have more information.

 

Kindly guide.

 

Warm regards,

 

Jayadev

--

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---

You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANAUezBjps%2BvueTgryU7%2BoBfQ%3DN5v%2BwmAsRH_hsyf53Lg8Bm7g%40mail.gmail.com.

Alain Aupeix

unread,
May 26, 2019, 9:33:58 AM5/26/19
to harbou...@googlegroups.com
Le 26/05/2019 à 15:21, Jayadev U a écrit :
>
> Hi Antonio,
>
> I am testing on Ubuntu 18.04.2 LTS Virtual Machine (32 bit).
>
> I have executed the following commands from your wiki:
>
> git clone https://github.com/fivetechsoft/mod_harbour
>
> chmod +x ./mod_harbour/linux/go.sh
>
> ./mod_harbour/linux/go.sh
>
> I get the following error:
>
> apache2: Syntax error on line 228 of /etc/apache2/apache2.conf: Cannot
> load /usr/lib/apache2/modules/mod_harbour.so into server:
> /usr/lib/apache2/modules/mod_harbour.so: wrong ELF class: ELFCLASS64
>
Your VM is 32 bits and modle is 64 bits ...

Can't you install a 64 bits VM ?

Jayadev U

unread,
May 26, 2019, 9:39:09 AM5/26/19
to Jayadev U, harbou...@googlegroups.com

Hi Antonio,

 

Further trying:

 

jayadev@jdub32server:~/mod_harbour/linux$ make Makefile

Makefile:9: /usr/share/apache2/build/special.mk: No such file or directory

make: *** No rule to make target '/usr/share/apache2/build/special.mk'.  Stop.

 

Warm regards,

 

Jayadev

 

 

From: Jayadev U [mailto:ujay...@gmail.com]
Sent: 26 May 2019 06:51
To: 'harbou...@googlegroups.com'
Subject: RE: [harbour-users] Re: A mod_harbour for Apache

 

Hi Antonio,

 

I am testing on Ubuntu 18.04.2 LTS Virtual Machine (32 bit).

 

I have executed the following commands from your wiki:

 

git clone https://github.com/fivetechsoft/mod_harbour

chmod +x ./mod_harbour/linux/go.sh

./mod_harbour/linux/go.sh

 

I get the following error:

 

apache2: Syntax error on line 228 of /etc/apache2/apache2.conf: Cannot load /usr/lib/apache2/modules/mod_harbour.so into server: /usr/lib/apache2/modules/mod_harbour.so: wrong ELF class: ELFCLASS64

Action 'restart' failed.

The Apache error log may have more information.

 

Kindly guide.

 

Warm regards,

 

Jayadev

 

 

From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Antonio Linares
Sent: 25 May 2019 07:54
To: Harbour Users
Subject: Re: [harbour-users] Re: A mod_harbour for Apache

 

Dear Daniele, Serge and others,

--

Jayadev U

unread,
May 26, 2019, 9:46:17 AM5/26/19
to harbou...@googlegroups.com
Hi Alain,

>>Your VM is 32 bits and module is 64 bits ...

I know, but there is one program which is available only in 32 bits hence I have to maintain 32 bit Ubuntu.

Warm regards,

Jayadev


-----Original Message-----
From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Alain Aupeix
Sent: 26 May 2019 07:04
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Re: A mod_harbour for Apache

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/4f7181ef-cf16-75f2-d118-56d0957d8329%40wanadoo.fr.

Alain Aupeix

unread,
May 26, 2019, 10:30:59 AM5/26/19
to harbou...@googlegroups.com
Le 26/05/2019 à 15:46, Jayadev U a écrit :
> Hi Alain,
>
>>> Your VM is 32 bits and module is 64 bits ...
> I know, but there is one program which is available only in 32 bits hence I have to maintain 32 bit Ubuntu.
With Build 64, you can run 32 programs, but with build 32, you can't run
64 programs ...

Jayadev U

unread,
May 26, 2019, 10:38:48 AM5/26/19
to harbou...@googlegroups.com
Hi Alain,

Can I not compile the mod_harbour.so for 32 bits ?

Warm regards,

Jayadev


-----Original Message-----
From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Alain Aupeix
Sent: 26 May 2019 08:01
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Re: A mod_harbour for Apache

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/d83e0aa2-7d5c-4b1b-3773-cce5d1911166%40wanadoo.fr.

Alain Aupeix

unread,
May 26, 2019, 10:40:28 AM5/26/19
to harbou...@googlegroups.com
Le 26/05/2019 à 16:38, Jayadev U a écrit :
> Hi Alain,
>
> Can I not compile the mod_harbour.so for 32 bits ?

I had such problems with Xubuntu 16.04 64 bits ...

Jayadev Urath

unread,
May 27, 2019, 4:40:20 AM5/27/19
to Harbour Users
Hi,

Please advice what modifications are required to make mod_harbour.so in 32 bits?

If it cannot be done (in 32 bits), please advice accordingly, so that I can download Ubuntu 64 bit and test.

Warm regards,

Jayadev



--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

Antonio Linares

unread,
May 27, 2019, 7:09:49 AM5/27/19
to harbou...@googlegroups.com
Jayadev,

Yes, it can be built for 32 bits too

Please do:

Sudo apt-get install apache2-dev

And run:

APXS

Please let me know if it responds properly

Thanks

Antonio

You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANLCvO9PCv8jvKX3T2cCE_f4_inn4qeMHX6ds7HNAXjDzzfQZw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 27, 2019, 1:13:24 PM5/27/19
to Harbour Users

POST operations already supported:


Please click here, write any username and pasword and such info will be retrieved from postpairs.prg:
https://harbour.fourtech.es/mod_harbour_examples/post.prg

Diego Fazio

unread,
May 27, 2019, 1:31:26 PM5/27/19
to Harbour Users
Excellent!!
I think I'm going to cry with emotion

Diego.

Antonio Linares

unread,
May 27, 2019, 11:45:28 PM5/27/19
to Harbour Users
Alain,


edit, navigation, etc

best regards

Antonio Linares
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 28, 2019, 12:32:32 AM5/28/19
to Harbour Users
New mod_harbour build with functions AP_HeadersOutCount() and AP_HeadersOutSet( cKey, cValue )


best regards

Antonio Linares
--
Antonio Linares
www.fivetechsoft.com

Antonio Linares

unread,
May 28, 2019, 1:27:02 AM5/28/19
to Harbour Users
Creating cookies, doing redirections, and much more ;-)


ClipperHearts to the web !!! :-)

Jayadev U

unread,
May 28, 2019, 3:20:02 AM5/28/19
to harbou...@googlegroups.com

Hi Antonio,

 

I followed your steps:

 

Sudo apt-get install apache2-dev

 

apxs -n harbour –g

 

make all

 

I get the following error:

 

/usr/share/apache2/build/special.mk:21: modules.mk: No such file or directory

/usr/share/apache2/build/rules.mk:236: .deps: No such file or directory

make: *** No rule to make target '.deps'.  Stop.

 

Please help.

 

Warm regards,

 

Jayadev

 

 

From: harbou...@googlegroups.com [mailto:harbou...@googlegroups.com] On Behalf Of Antonio Linares
Sent: 27 May 2019 04:40
To: harbou...@googlegroups.com
Subject: Re: [harbour-users] Re: A mod_harbour for Apache

 

Jayadev,

Alain Aupeix

unread,
May 28, 2019, 3:25:05 AM5/28/19
to harbou...@googlegroups.com
Le 28/05/2019 à 05:45, Antonio Linares a écrit :
> Alain,
>
> http://xevicomas.no-ip.org/browse/main.prg
>
> edit, navigation, etc
Yes, it works like a charm, but trying to make it works locally, it
fails ...

Perhaps that these files are missing ?

<script src="lib/bootpag/jquery.bootpag.min.js"></script>
<link rel="stylesheet" href="css/app.css">

Perhaps also a similar reason of the inactive 1,2,3,4 (page) and 5,10,15
(per page) buttons in dbrowse

For now, I have this error:

error: Syntax error "syntax error at '<'" line:1

called from: GETERRORINFO, line: 55
called from: DOBREAK, line: 66
called from: (b)_APPMAIN, line: 14
called from: HB_COMPILEFROMBUF, line: 0
called from: EXECUTE, line: 31
called from: _APPMAIN, line: 17 // <body>

Perhaps of this:

$("#dat").load("controller/data.prg?action=load&page=" + nPage +
"&rows=" + nRows);
$("#dlg_info_content").load( "controller/info.prg" )
$.get("controller/data.prg?action=delete&recno=" + n, function(data,
status){
$("#dlg_edit_content").load( "controller/data.prg?action=edit&recno=" + n )

info.prg and data.prg missing ?

Thanks

Antonio Linares

unread,
May 28, 2019, 3:30:16 AM5/28/19
to harbou...@googlegroups.com
Jayadev,

Please do:

sudo apt-get install apache2

And try APXS again

Thanks

Best regards

Antonio Linares


For more options, visit https://groups.google.com/d/optout.
--
Antonio Linares
www.fivetechsoft.com
Message has been deleted

Jayadev U

unread,
May 28, 2019, 5:20:47 AM5/28/19
to harbou...@googlegroups.com

Hi Antonio,

 

Ok, successful at last.  Thanks for your patience. Your readme.md under linux directory was very helpful.

 

Now to explore other programs, copying them to /var/www/html alone does not activate them, anything else is required ?

fdaniele

unread,
May 28, 2019, 5:31:57 AM5/28/19
to Harbour Users
@ Alain ...

a great work for a great developer !!
very complements !




Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to harbou...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.

To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.

--

Antonio Linares
www.fivetechsoft.com

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to harbou...@googlegroups.com.

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbou...@googlegroups.com.
--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
May 28, 2019, 5:48:35 AM5/28/19
to harbou...@googlegroups.com
Le 28/05/2019 à 11:20, Jayadev U a écrit :
>
> Hi Antonio,
>
> Ok, successful at last. Thanks for your patience. Your readme.md
> under linux directory was very helpful.
>
> Now to explore other programs, copying them to /var/www/html alone
> does not activate them, anything else is required ?
>

Which are the messages you have in your browser ?

Antonio Linares

unread,
May 28, 2019, 5:49:00 AM5/28/19
to harbou...@googlegroups.com
Jadayev,

mod_harbour uses two files:

mod_harbour.so
libharbour.so.3.2.0. 

This libharbour is not the official one from the harbour project as it includes Apache.prg and hbcplr.lib as this one is not included by default in harbour project libharbour.so.3.2.0

mod_harbour.so has to be copied to /usr/lib/apache2/modules folder

Libharbour.so.3.2.0 has to be copied to /var/www/html this may change in the future

Once they are copied, you have to restart Apache doing:

sudo apachectl restart

Alternatively:

sudo apachectl stop
sudo apachectl start

Place mod_harbour PRG examples at /var/www/html

From your windows browser go to localhost and start running mod_harbour prgs examples

Take some time to review those prgs and learn what they do

Welcome to mod_harbour

Best regards

Antonio Linares
mod harbour architect


For more options, visit https://groups.google.com/d/optout.
--
Antonio Linares
www.fivetechsoft.com

Carlitus

unread,
May 28, 2019, 5:50:50 AM5/28/19
to Harbour Users
Alain,

You need download from here -> https://github.com/carles9000/mod_harbour/

For example browse you need copy inside folder html nexts folders: browse,data, include

This is a little example, that try to do differents things with mod_harbour. It is not a working model, they are only tests at the moment, but you can see how we are able to include, ajax, classes, post, get, ... step by step we are moving forward with this fabulous project


Regards.
C.

Jayadev U

unread,
May 28, 2019, 6:08:09 AM5/28/19
to harbou...@googlegroups.com

Hi Antonio,

 

Many thanks for hand holding me.  I have followed the steps given below.  However irrespective of what I try to test on the browser, I get the same output.

 

For example:

 

when firing localhost/info.prg  the output is “The sample page from mod_harbour.c”

when firing localhost/dbrowse.prg  the output is “The sample page from mod_harbour.c”

Alain Aupeix

unread,
May 28, 2019, 6:35:45 AM5/28/19
to harbou...@googlegroups.com
Le 28/05/2019 à 11:50, Carlitus a écrit :
> Alain,
>
> You need download from here -> https://github.com/carles9000/mod_harbour/
>
> For example browse you need copy inside folder html nexts folders:
> browse,data, include
>
> This is a little example, that try to do differents things with
> mod_harbour. It is not a working model, they are only tests at the
> moment, but you can see how we are able to include, ajax, classes,
> post, get, ... step by step we are moving forward with this fabulous
> project

Hi,

I have clone it, but haven't yet now the time to test it.

Alain Aupeix

unread,
Jun 3, 2019, 8:24:05 AM6/3/19
to harbou...@googlegroups.com
Le 28/05/2019 à 11:50, Carlitus a écrit :
> Alain,
>
> You need download from here -> https://github.com/carles9000/mod_harbour/
Hi, I have tried your version, and it doesn't work.
> For example browse you need copy inside folder html nexts folders:
> browse,data, include

I have copied the three folders in /var/www/html
I have copied libharbour.so.3.2.0.0 (from 20190529) in /var/www/html
I have copied mod_harbour.so (from 20190529) in /usr/lib/apache2/modules
I have restart apache2 using : sudo service apache2 restart
I try to connect to http://localhost/browse/main.prg

It just displays the prg ...

Where do I fail ?

Antonio Linares

unread,
Jun 3, 2019, 9:17:58 AM6/3/19
to Harbour Users

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
Jun 3, 2019, 10:48:38 AM6/3/19
to harbou...@googlegroups.com
Le 03/06/2019 à 15:17, Antonio Linares a écrit :
> Alain,
>
> https://github.com/FiveTechSoft/mod_harbour/wiki/What-to-check-if-the-mod-is-not-working
>
>
> best regards
Hi,

same problem using apacheclt instead of using service restart

I must say that your version is working, but not the one of carlitus.
I just want to use his version to have css, and js locally

Antonio Linares

unread,
Jun 3, 2019, 12:36:40 PM6/3/19
to Harbour Users
Alain,

We are going to upload Charly (Carlitus) app to the mod_harbour demo server so everyone can test it 

We will check that everything is ok, so you can use it too

thanks

Antonio

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to a topic in the Google Groups "Harbour Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/harbour-users/lZGlFSZ23No/unsubscribe.
To unsubscribe from this group and all its topics, send an email to harbour-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Antonio Linares
www.fivetechsoft.com

Alain Aupeix

unread,
Jun 5, 2019, 4:37:50 AM6/5/19
to harbou...@googlegroups.com
Le 03/06/2019 à 14:24, Alain Aupeix a écrit :
> Le 28/05/2019 à 11:50, Carlitus a écrit :
>> Alain,
>>
>> You need download from here ->
>> https://github.com/carles9000/mod_harbour/
> Hi, I have tried your version, and it doesn't work.
>> For example browse you need copy inside folder html nexts folders:
>> browse,data, include
>
> I have copied the three folders in /var/www/html
> I have copied libharbour.so.3.2.0.0 (from 20190529) in /var/www/html
> I have copied mod_harbour.so (from 20190529) in /usr/lib/apache2/modules
> I have restart apache2 using : sudo service apache2 restart
> I try to connect to http://localhost/browse/main.prg
>
> It just displays the prg ...
>
> Where do I fail ?

Hi, I located Carlltus version in ~/www-dev/carl, as I done with
Antonio's version (which works) in ~/www-dev/harbour, and made links in
/var/www/html

I tried to modify apache2.conf replacing the line, but it didn't work too

<Location /harbour> >> /carl
SetHandler harbour >> carl
</Location>

Just renaming carl folder to harbour makes mod_harbour to work

I have just now a problem with customer.dbf which is not found ....

I'll continue to search, but if you have an idea, I'll take it ;)

hherrera

unread,
Jun 5, 2019, 10:57:01 PM6/5/19
to Harbour Users
Perdon por esta pregunta de novatos.

Si hiciera un programa usando mod_Harbour los clientes tendrian que tener todos el codigo fuente de mis .prgs para que funcione.

Gracias y perdon si esta pregunta le puede resultar tonta a alguien.

It is loading more messages.
0 new messages