Strange error Modharbour and IIS

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
jfl@mafact.com
Posts: 14
Joined: Tue Mar 25, 2008 7:22 pm

Strange error Modharbour and IIS

Post by jfl@mafact.com »

Hi Antonio,

I installed the 28/05 for IIS Modharbour following the readme.

When running any prg I receive this same error (but the last numbers)

mod_harbour error:
C:\WINDOWS\TEMP\libharbour.10864.471
Le module spécifié est introuvable.

the last 3 numbers will change each time and the file libharbour.dll seem to be automatically copied each time (by IIS ?) to this folder, replacing .dll by this number 10864.471 then 10864.277 10864.120 10864.789 ...

Launching another prg from the samples folders, will give another suffix ie: 4789.125 4789.569 ...

I checked my ENV VAR LIBHARBOUR wich is a system VAR and point to E:\Modharbour\libharbour.dll

Any idea ?

J. Lefebvre, Mafact SRL Belgium
J. Lefebvre
Mafact SA (Belgium)
http://www.mafact.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error Modharbour and IIS

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
jfl@mafact.com
Posts: 14
Joined: Tue Mar 25, 2008 7:22 pm

Re: Strange error Modharbour and IIS

Post by jfl@mafact.com »

I Antonio,

I re-installed following your readme from the IIS version from 28/05 then copyed the latest files as you wrote, but I always reveiv the same message.

Same result with IIS 10 on windows server 2019.

I even gived the full rigth to IIS_IUSRS on c:\windows\tmp, but with the same result.

The file size, date and time is exactly those from libharbour.dll 03-06-20 09:46 6.392 KB but the name is libharbour.7768.116 or libharbour.10152.791 ...

Best regards,

JF
J. Lefebvre
Mafact SA (Belgium)
http://www.mafact.com
jfl@mafact.com
Posts: 14
Joined: Tue Mar 25, 2008 7:22 pm

Re: Strange error Modharbour and IIS

Post by jfl@mafact.com »

I finally got it running as FastCgi with Modharbour.exe, so you can forgot why it does'nt work as Isapi module for me.

I created 2 fastCgi entry, one for *.prg and another for *.hrb

Clock.prg is perfectly running.

Some say me that they cannot #include file c:\harbour\include\....ch

I continue to investigate :)

Thanks for your work !

JF
J. Lefebvre
Mafact SA (Belgium)
http://www.mafact.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error Modharbour and IIS

Post by Antonio Linares »

JF,

Did you got it working with IIS ?

I do appreciate if you explain the installation process on IIS for other interested users

many thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
jfl@mafact.com
Posts: 14
Joined: Tue Mar 25, 2008 7:22 pm

Re: Strange error Modharbour and IIS

Post by jfl@mafact.com »

Yes, it work perfectly for IIS on Windows server 2019.

Will write a step by step installation this afternoon.

JF
J. Lefebvre
Mafact SA (Belgium)
http://www.mafact.com
jfl@mafact.com
Posts: 14
Joined: Tue Mar 25, 2008 7:22 pm

Re: Strange error Modharbour and IIS

Post by jfl@mafact.com »

Installing Modharbour.exe as FastCgi on IIS 10.
--------------------------------------------------------

Create a folder with all the needed files from

https://github.com/FiveTechSoft/mod_har ... ows/win64/*.*

to (for exemple) c:\modharbour

Launch IIS manager from "Control Pannel, Administrative tools."

Click on the main IIS server, (same name as the server or computer itself)
From the IIS section (the last one), look for "Handler Mapping icon" and double-click it.

On the right side pannel, look for "ADD an handler mapping"

Request Path : *.prg, *.hrb
Modules : Select FastCgi
Executable : c:\modharbour\modharbour.exe
Name : Mod_Harbour_FCGI (for exemple)

Now click on the button [request restriction] and uncheck the main box then OK

Click now on OK.

Restart your IIS server.

Samples should be installed as already described by Antonio.

Don't forget to give the user IIS_IUSRS the right to the samples folder.

Enjoy FastCgi on IIS :)
J. Lefebvre
Mafact SA (Belgium)
http://www.mafact.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error Modharbour and IIS

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply