mod_harbour for Apache

Moderator: Rathinagiri

User avatar
apais
Posts: 365
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 68 times
Been thanked: 51 times
Contact:

Re: mod_harbour for Apache

Post by apais »

index.prg
---------------------------------------
function Main()
? 'Hello World'
return NIL
---------------------------------------
Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
https://www.mod-harbour.com
https://www.amigo-software.com.uy

ASESORMIX
Posts: 126
Joined: Thu Oct 25, 2012 8:08 pm
Location: Bqto, Venezuela
Been thanked: 8 times

Post by ASESORMIX »

Hola. Gracias por responder.
Tengo poco conocimiento en esta area ( soy programador de la vieja guardia )
y quisiera saber como debo empezar.
Cuales aplicaciones debo descargar, instalar y ejecutar en el pc server
y que debo hacer en mi pc cliente.
Solo quiero una breve explicación al respecto.
Nuevamente gracias.

User avatar
apais
Posts: 365
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 68 times
Been thanked: 51 times
Contact:

Post by apais »

[español]
Estos programas, son módulos que se agregan al server apache.
Es un sustituto de php que te permite trabajar el back-end en tu lenguaje conocido y favorito.
Ello te permite que cada request que termina en .prg o .hrb sea interpretado por harbour, igual que los que terminan en .php son interpretados por php
En el cliente no cambia nada, usas tu firefox o chrome como siempre ya que las paginas son html/css/js como siempre.
Esta es una tecnología de SERVIDOR para tratar los datos, procesar las consultas y construir y devolver las páginas dinamicamente.
Ese ejemplo que puse antes es un hello world. Como puedes observar es un programa harbour normal, sólo que cada "?" va a la respuesta que recibe tu browser de internet.
Lo primero que tienes que hacer es instalar apache o xammp.
Despues te bajas la beta_4 desde https://www.mod-harbour.com
Contiene un archivo .rar con binarios para cada sistema operativo (win/lin/mac)
También hay un pequeño texto con instrucciones acerca de donde colocar cada .dll y cada .so ( modulo apache )
Despues agregas al httpd.conf de apache las líneas alli indicadas y listo, ya puedes crear el ejemplo que te pasé y ejecutarlo!
Mas adelante colgaré muchos más ejemplos de programas para ejecutar pero si te fijas, en la pagina esa tambien hay un demo completo del HMGWEB de Roberto López (quien gentilmente me dio permiso ), convertido desde CGI+php a estos web drivers y harbour.

[english]
These programs are modules that are added to the apache server.
It is a substitute for php that allows you to work the back-end in your already known and favorite language.
This allows each request that ends in .prg or .hrb to be interpreted by harbour, just as those that end in .php are interpreted by php
Nothing changed in the client, you use your firefox or chrome as usual since the pages are html / css / js as always.
This is a SERVER technology to process data, process queries, and dynamically build and return pages.
The example I put before is a hello world.
As you can see it is a normal harbor program, only that each "?" goes to the response that internet browser receives.
The first thing you have to do is install Apache or xammp.
Then you download the beta_4 from https://www.mod-harbour.com
It contains a .rar file with binaries for each operating system (win / lin / mac)
There is also a small text with instructions about where to put each .dll and each .so (apache module)
Then you add the lines indicated there to the httpd.conf of Apache, and that's it, you can create the example I gave you and run it!
Later I will post many more examples of programs to run but if you notice, on that page there is also a complete demo of Roberto López's HMGWEB (who kindly gave me permission), converted from CGI + php to hw_apache + harbour.

Saludos
Angel Pais
Last edited by apais on Sat Aug 29, 2020 1:12 pm, edited 1 time in total.
Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
https://www.mod-harbour.com
https://www.amigo-software.com.uy


User avatar
bpd2000
Posts: 1177
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 260 times
Been thanked: 154 times

Post by bpd2000 »

apais wrote:
Sat Aug 29, 2020 5:53 am

The first thing you have to do is install Apache or xammp.
Then you download the beta_4 from https://www.modharbour.com
Unable to open link
BPD
Convert Dream into Reality through HMG

User avatar
apais
Posts: 365
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 68 times
Been thanked: 51 times
Contact:

Post by apais »

Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
https://www.mod-harbour.com
https://www.amigo-software.com.uy

jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm
Been thanked: 1 time

Post by jucar_es »

:buenas tardes
Ya seguí todos los pasos

Pero chome me visualiza el prg..
Que habré echo mal......
Gracias

User avatar
apais
Posts: 365
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 68 times
Been thanked: 51 times
Contact:

Post by apais »

Probablemente te olvidaste de cambiar el httpd.conf de Apache.
My Skype: samltda@outlook.com
Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
https://www.mod-harbour.com
https://www.amigo-software.com.uy

User avatar
bpd2000
Posts: 1177
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 260 times
Been thanked: 154 times

Post by bpd2000 »

Hi Apais
Why I am getting error as per screen shot
Attachments
Untitled.jpg
Untitled.jpg (116.67 KiB) Viewed 739 times
BPD
Convert Dream into Reality through HMG

User avatar
apais
Posts: 365
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 68 times
Been thanked: 51 times
Contact:

Post by apais »

You can't call a service directly.
Surely you have 3 .bat there
1) for installing the service: install.bat
2) another for starting the service: start.bat
3) another for shutting down the service: stop.bat
HTH
Angel
Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
https://www.mod-harbour.com
https://www.amigo-software.com.uy

Post Reply