mod_harbour what to install

Re: mod_harbour what to install

Postby Antonio Linares » Sun Jul 07, 2019 4:30 am

Otto,

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

Post them here
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod_harbour what to install

Postby Massimo Linossi » Tue Jul 09, 2019 6:45 pm

Hi Antonio.
Have you any news about using Advantage Database ?
Thanks a lot.
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: mod_harbour what to install

Postby Antonio Linares » Wed Jul 10, 2019 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod_harbour what to install

Postby Romeo » Wed Jul 10, 2019 5: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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Postby Antonio Linares » Wed Jul 10, 2019 5: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: Select all  Expand view  RUN
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  Expand view  RUN
function Main()

   ? "Hello world"

return nil

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod_harbour what to install

Postby Romeo » Wed Jul 10, 2019 6: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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Postby cnavarro » Wed Jul 10, 2019 7: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
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: mod_harbour what to install

Postby Romeo » Thu Jul 11, 2019 7:03 am

Ops

I Got the same error !

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

Re: mod_harbour what to install

Postby Romeo » Thu Jul 11, 2019 4: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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: mod_harbour what to install

Postby Antonio Linares » Thu Jul 11, 2019 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod_harbour what to install

Postby Otto » Thu Jul 11, 2019 6: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

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod_harbour what to install

Postby Romeo » Fri Jul 12, 2019 11:43 am

Great !

My i rent a server and modify it for MOD_HARBOuR ?

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

Re: mod_harbour what to install

Postby Antonio Linares » Sun Jul 28, 2019 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod_harbour what to install

Postby Otto » Sun Aug 04, 2019 8: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.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod_harbour what to install

Postby damianodec » Wed Aug 07, 2019 7:37 am

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)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests