Page 3 of 4

Re: mod_harbour what to install

Posted: Sun Jul 07, 2019 4:30 am
by Antonio Linares
Otto,

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

Post them here

Re: mod_harbour what to install

Posted: Tue Jul 09, 2019 6:45 pm
by Massimo Linossi
Hi Antonio.
Have you any news about using Advantage Database ?
Thanks a lot.
Massimo

Re: mod_harbour what to install

Posted: Wed Jul 10, 2019 8:43 am
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...

Re: mod_harbour what to install

Posted: Wed Jul 10, 2019 5:31 pm
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

Re: mod_harbour what to install

Posted: Wed Jul 10, 2019 5:56 pm
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

Re: mod_harbour what to install

Posted: Wed Jul 10, 2019 6:57 pm
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

Re: mod_harbour what to install

Posted: Wed Jul 10, 2019 7:10 pm
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"

Re: mod_harbour what to install

Posted: Thu Jul 11, 2019 7:03 am
by Romeo
Ops

I Got the same error !

R

Re: mod_harbour what to install

Posted: Thu Jul 11, 2019 4:35 pm
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

Re: mod_harbour what to install

Posted: Thu Jul 11, 2019 6:20 pm
by Antonio Linares
Romeo,

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

Re: mod_harbour what to install

Posted: Thu Jul 11, 2019 6:46 pm
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

Re: mod_harbour what to install

Posted: Fri Jul 12, 2019 11:43 am
by Romeo
Great !

My i rent a server and modify it for MOD_HARBOuR ?

tks
R

Re: mod_harbour what to install

Posted: Sun Jul 28, 2019 4:43 pm
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 :-)

Re: mod_harbour what to install

Posted: Sun Aug 04, 2019 8:36 pm
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.

Re: mod_harbour what to install

Posted: Wed Aug 07, 2019 7:37 am
by damianodec
hallo,
can you provide me a secure link for apache download?
thanks