Error con XAMP en Windows...mod_harbour.so

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!
Post Reply
csincuir
Posts: 305
Joined: Sat Feb 03, 2007 6:36 am
Location: Guatemala
Contact:

Error con XAMP en Windows...mod_harbour.so

Post by csincuir »

Hola a todos.
Siguiendo los pasos de instalación en Windows con Xamp, de mod_harbour, que indica Antonio, me salio este mensaje de error:

Code: Select all

c:\Apache24\htdocs\libharbour.dll
No se puede encontrar el módulo especificado.
Buscando donde está esta llamada al c:\Apache24\.. la misma se encuentra en "mod_harbour.so", por lo que tuve que crear la carpeta "C:\Apache24\htdocs\" y le copie el archivo "libharbour.dll" y listo, ahí si funciono.

Solo para que lo tengan presente y si se puede revisar esa linea en el archivo "mod_harbour.so"

Saludos cordiales.

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

Re: Error con XAMP en Windows...mod_harbour.so

Post by Antonio Linares »

Carlos,

Explicado aquí:
https://github.com/FiveTechSoft/mod_har ... er/windows
If you are using Xampp on Windows then use SetEnv like this from httpd.conf:

LoadModule harbour_module modules/mod_harbour.so

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

Antonio Linares
www.fivetechsoft.com
csincuir
Posts: 305
Joined: Sat Feb 03, 2007 6:36 am
Location: Guatemala
Contact:

Re: Error con XAMP en Windows...mod_harbour.so

Post by csincuir »

Hola Antonio.
Es correcto, yo tenía de esta forma la linea:
SetEnv LIBHARBOUR "c:\xampp\htdocs"

Me faltaba colocarle el nombre de la dll:
SetEnv LIBHARBOUR "c:\xampp\htdocs\libharbour.dll"

Asi, si funciona correctamente, gracias.
Ya estoy empezando a conocer las bondades de mod_harbour

Saludos cordiales.

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

Re: Error con XAMP en Windows...mod_harbour.so

Post by damianodec »

Hi Antonio,
In github you racommend this:
Recommended settings are:

c:\mod_harbour (created using git clone https://github.com/fivetechsoft/mod_harbour)

At c:\Apache24\htdocs create these symlinks: (run cmd as administrator)

mklink /j modharbour_samples c:\mod_harbour\samples

mklink /h libharbour.dll c:\mod_harbour\windows\win64\libharbour.dll

From the browse go to localhost/modharbour_samples

When you want to update mod_harbour, simply go to mod_harbour and do a git pull
I done it and if I put test.prg in C:\xampp\htdocs and then http://localhost:81/test.prg it works (I use port 81) but if go to the browse to
localhost:81/modharbour_samples I get:
OBJECT NOT FOUND
ERROR 404

any help?
thank you.
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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Error con XAMP en Windows...mod_harbour.so

Post by Antonio Linares »

Please connect to mod_harbour users live chat at https://app.slack.com/client/TJH5YU202/CJUHF8SBX
and post your question there, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
damianodec
Posts: 372
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: Error con XAMP en Windows...mod_harbour.so

Post by damianodec »

thank you antonio
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