FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour mod_harbour what to install
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod_harbour what to install
Posted: Sun Jul 07, 2019 04:30 AM

Otto,

Please review the log files at c:\Apache24\logs\

Post them here

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: mod_harbour what to install
Posted: Tue Jul 09, 2019 06:45 PM

Hi Antonio.
Have you any news about using Advantage Database ?
Thanks a lot.
Massimo

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod_harbour what to install
Posted: Wed Jul 10, 2019 08:43 AM
Massimo,

Advantage DLLs for Win32, 64 and Linux:
http://devzone.advantagedatabase.com/dz/content.aspx?key=20&Release=19&Product=5

We need them in order to test the ADS connection

We move forward...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: mod_harbour what to install
Posted: Wed Jul 10, 2019 05:31 PM

I have PC with still Windows 7 32bit

I have installed XAMPP

What i have to do for installation of MOD_HARBOUR ?

Please easy step

tks
Romeo

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod_harbour what to install
Posted: Wed Jul 10, 2019 05:56 PM
Romeo,

1. Copy this mod_harbour.so to c:\xampp\apache\modules
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/mod_harbour.so

2. Copy this libharbour.dll to c:\xampp\htdocs
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win32/libharbour.dll

3. Add these lines to the bottom of c:\xampp\apache\conf\httpd.conf
Code (fw): Select all Collapse
LoadModule harbour_module modules/mod_harbour.so

<FilesMatch "\.(prg|hrb)$">
    SetEnv LIBHARBOUR "c:/xampp/htdocs" 
    SetHandler harbour
</FilesMatch>

4. Create a test.prg at c:\xampp\htdocs:
Code (fw): Select all Collapse
function Main()

   ? "Hello world"

return nil

5. From your browser go to localhost/test.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: mod_harbour what to install
Posted: Wed Jul 10, 2019 06:57 PM

Ciao

I followed all the indications an i got this error:

c:\Apache24\htdocs\libharbour.dll
Impossibile trovare il modulo specificato. (enable to load this dll)

Anyhow i create that folder and put the DLL inside.

All works

But how to correct that ?

Tks

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: mod_harbour what to install
Posted: Wed Jul 10, 2019 07:10 PM
At the beginning of the file C:\xampp\apache\conf\httpd.conf


Define SRVROOT "C:/xampp/apache"
SetEnv LIBHARBOUR "c:\xampp\htdocs\libharbour.dll"
#Define LIBHARBOUR "c:\xampp\htdocs\libharbour.dll"

ServerRoot "C:/xampp/apache"

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
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: mod_harbour what to install
Posted: Thu Jul 11, 2019 07:03 AM

Ops

I Got the same error !

R

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: mod_harbour what to install
Posted: Thu Jul 11, 2019 04:35 PM

One question.

I just start creating my first MOD_HARBOUR application on my PC with XAMMP..

After creating it, i have to move it on WEB

In general, as is it possible to ask to administrator to modify the APACHE CONFIG and copy ours file in them server to run out PRG files ?

Or there is some WEB/Hosting just ready for this ?

Tks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod_harbour what to install
Posted: Thu Jul 11, 2019 06:20 PM

Romeo,

For now you need to use a dedicated server where you can use mod_harbour

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod_harbour what to install
Posted: Thu Jul 11, 2019 06:46 PM
Romeo,
this is my web server.
Please test the speed yourself:

https://my3zinnen.com/samples/temp.prg

https://my3zinnen.com/samples/genesis/index.prg

The server is connected with SIM card with static IP to the internet.
We use Archer MR200 Routers.

We have added Virual Servers for following services:
RDP, sock, http, https and mysql.

As Internet Server we use Apache and and mod harbour.

Speed is top.

SSL certificate is working fine.


Best regards
Otto

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: mod_harbour what to install
Posted: Fri Jul 12, 2019 11:43 AM

Great !

My i rent a server and modify it for MOD_HARBOuR ?

tks
R

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod_harbour what to install
Posted: Sun Jul 28, 2019 04:43 PM

yes !!!

It has to be a dedicated server.

To start with mod_harbour you don't need a dedicated server, just use your Windows 10 :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod_harbour what to install
Posted: Sun Aug 04, 2019 08:36 PM

Hello,
translated with google.
I followed the instuctions and all worked.
Thank you Jose.
On this server I use APACHE 64 bit and mod harbour 64 bit.

Best regards
Otto

*** MANUAL PARA INSTALACION Y EJECUCION DE MOD_HARBOUR EN WINDOWS ***

// Tips, to avoid writing errors I advise you to copy paste everything you can :-))
// I have not done it but it has come out in 10 steps.
// The tutorial although I have transcribed it is due to wisdom and the desire to help
// of the friend Cristobal Navarro. Without it nothing would be the same, Ah we can program in the FIVEDIT
// and execute the code from the same IDE.
// Thanks to Antonio Linares, Cristobal Navarro and everyone who contributes, especially
// to Carles Aubia so that mod_harbour grows every day. MANY THANKS.

1.- Download XAMPP for windows web. https://www.apachefriends.org/es/index.html

2.- Download mod_harbour from the web. https://github.com/FiveTechSoft/mod_harbour

3.- We install XAMPP folder by default C:\xampp

4.- we create a new folder called modharbour_samples in C:\xampp\htdocs

5.- In that folder created "modharbour_samples" we copy the inside of
the samples folder of the file "mod_harbour-master.zip" that we have downloaded.
But look inside the folder "samples" the same folder is not included
There are a number of apps, blog folders, all that.

6.- Search within the downloaded zip "mod_harbour-master.zip" the file mod_harbour.so of the
version of windows that you use (in my case 64 bits, it is in
mod_harbour-master.zip \ mod_harbour-master \ windows \ win64) and copy it to C: \ xampp \ apache \ modules

7.- In the same folder you have mod_harbour.so in this case mod_harbour-master \ windows \ win64
there is a libharbour.dll dll copy it to C: \ xampp \ htdocs

8.- In the folder C: \ xampp \ apache \ conf there is a file called httpd.conf, make a copy
security of the same as a precaution, now edit the file and at the beginning of it and before

Define SRVROOT "C:/xampp/apache"
ServerRoot "C:/xampp/apache"

paste these two lines

Define SRVROOT "C:/xampp/apache"
SetEnv LIBHARBOUR "c:\xampp\htdocs\libharbour.dll"

Then look for Loadmodule in the file, you get a list (there are quite a few)
go to the end of all of them and place.

LoadModule harbour_module modules/mod_harbour.so
<FilesMatch ".(prg|hrb)$">
SetHandler harbour
</FilesMatch>

Save the file.

9.- Now start the Apache and in the browser type:

localhost/modharbour_samples/info.prg

You should get the correct screenshot with the code .prg executed in Apache.

10.- Now you can go testing all the files you have in Samples or add yours
Own, you know.

localhost/modharbour_samples/mifichero.prg

And that's all my friends.

Jose Vte. Cheto Agosto - 2019.

Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: mod_harbour what to install
Posted: Wed Aug 07, 2019 07:37 AM

hallo,
can you provide me a secure link for apache download?
thanks

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)