mod_harbour what to install

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod_harbour what to install

Post by Antonio Linares »

Otto,

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

Post them here
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Massimo Linossi
Posts: 474
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: mod_harbour what to install

Post by Massimo Linossi »

Hi Antonio.
Have you any news about using Advantage Database ?
Thanks a lot.
Massimo
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod_harbour what to install

Post by Antonio Linares »

Massimo,

Advantage DLLs for Win32, 64 and Linux:
http://devzone.advantagedatabase.com/dz ... &Product=5

We need them in order to test the ADS connection

We move forward...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Post by Romeo »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod_harbour what to install

Post by Antonio Linares »

Romeo,

1. Copy this mod_harbour.so to c:\xampp\apache\modules
https://github.com/FiveTechSoft/mod_har ... harbour.so

2. Copy this libharbour.dll to c:\xampp\htdocs
https://github.com/FiveTechSoft/mod_har ... arbour.dll

3. Add these lines to the bottom of c:\xampp\apache\conf\httpd.conf

Code: Select all

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: Select all

function Main()

   ? "Hello world"

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

Antonio Linares
www.fivetechsoft.com
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Post by Romeo »

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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: mod_harbour what to install

Post by cnavarro »

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"
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Post by Romeo »

Ops

I Got the same error !

R
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Post by Romeo »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod_harbour what to install

Post by Antonio Linares »

Romeo,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod_harbour what to install

Post by Otto »

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

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Post by Romeo »

Great !

My i rent a server and modify it for MOD_HARBOuR ?

tks
R
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: mod_harbour what to install

Post by Antonio Linares »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: mod_harbour what to install

Post by Otto »

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.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
damianodec
Posts: 372
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: mod_harbour what to install

Post by damianodec »

hallo,
can you provide me a secure link for apache download?
thanks
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)
Post Reply