Great news regarding mod_harbour CGI !!!

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Re: Great news regarding mod_harbour CGI !!!

Postby Antonio Linares » Fri Nov 25, 2022 10:08 am

Here it is working perfectly fine.

delivering an image is done by Apache automatically, mod_harbour does nothing there
regards, saludos

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

Re: Great news regarding mod_harbour CGI !!!

Postby Otto » Fri Nov 25, 2022 10:19 am

Dear Antonio,

You should not work today on your birthday.
I wish you all the best again.

What you write works for me when I enter the absolute URL link https:// myserver.com/images/xxx.jpg
What exactly must be the link without first to the net and then back?
Where exactly in htaccess do I store the images.

A question for DUMMIES:

Is CGI to understand that here the harbourmachine is outside the webserber and then delivers the HTML code to the server?

Best regards,
Otto

PS: Please keep in mind that this server has only a 24/100 MBit/s connection to the internet.
Last edited by Otto on Fri Nov 25, 2022 10:33 am, edited 1 time in total.
********************************************************************
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: Great news regarding mod_harbour CGI !!!

Postby Otto » Fri Nov 25, 2022 10:28 am

Dear Antonio,
please see here:

https://winhotel.org/cgi-bin/MovieCenter/Main.prg

But I do not find out how this works without
<img src="https://cccccl.org/moviecenter/images/med.jpg"

Best regards,
Otto
********************************************************************
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: Great news regarding mod_harbour CGI !!!

Postby acuellar » Fri Nov 25, 2022 11:22 am

Feliz cumple Estimado Antonio

He desinstalado Apache24 lo volví a instalar y aparecieron algunas imágenes

Luego borré el historial el navegador porque no aparecían todas

Ahora otra vez no aparece ninguna :(

Pudo haber sucedido que muestre porque antes lo hice sin cgi y las guardó en el cache
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Great news regarding mod_harbour CGI !!!

Postby Antonio Linares » Fri Nov 25, 2022 12:12 pm

Muchas gracias! :-)

Estás usando el fichero .htaccess y el httpd.conf que proporcionamos en el repo ?
regards, saludos

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

Re: Great news regarding mod_harbour CGI !!!

Postby giuliano » Fri Nov 25, 2022 12:20 pm

Hi Antonio ,
i want to test "mod_harbour CGI" on CENTOS Linux .
What is the right way to do this ?

Copy modharbour in /cgi-bin/ under /var/www/ folder ?
And then create .htaccess in /var/www/html ( the same file of your link ) ?

Is it correct ?

Bye
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: Great news regarding mod_harbour CGI !!!

Postby Antonio Linares » Fri Nov 25, 2022 12:28 pm

Dear Giuliano,

Simply copy modharbour.exe and DLLs from here to your cgi-bin folder:
https://github.com/FiveTechSoft/mod_har ... gi/windows

Copy .hcaccess to apache/htdocs:
https://github.com/FiveTechSoft/mod_har ... /.htaccess

And use this Apache configuration file:
https://github.com/FiveTechSoft/mod_har ... httpd.conf

Then place a little test.prg in your cgi-bin folder like this one:
Code: Select all  Expand view
function Main()

   ? Time()

return nil

and then go to localhost/test from your browser :-)
regards, saludos

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

Re: Great news regarding mod_harbour CGI !!!

Postby acuellar » Fri Nov 25, 2022 12:46 pm

Antonio Linares wrote:Muchas gracias! :-)

Estás usando el fichero .htaccess y el httpd.conf que proporcionamos en el repo ?


Si
.htaccess
Code: Select all  Expand view

# Harbour - forward all request to modharbour.exe

RewriteEngine on
RewriteRule ^(.*\.prg) /cgi-bin/modharbour.exe?$1 [L,QSA]

RewriteEngine on
RewriteRule ^([^\.]+) /cgi-bin/modharbour.exe?$1.prg [L,QSA]
 

httpd
Code: Select all  Expand view

#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/httpd-proxy-html.conf
</IfModule>

# Secure (SSL/TLS) connections
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
#Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-ahssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule http2_module>
    ProtocolsHonorOrder On
    Protocols h2 h2c http/1.1
</IfModule>

# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php location
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf

<IfModule lua_module>
  AddHandler lua-script .lua
</IfModule>
 


Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Great news regarding mod_harbour CGI !!!

Postby giuliano » Fri Nov 25, 2022 12:52 pm

Thanks Antonio .
Sorry . It's my mistake .
The folder where i place my test.prg is wrong.
Not in document root but in cgi-folder

Bye :D
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: Great news regarding mod_harbour CGI !!!

Postby Otto » Fri Nov 25, 2022 3:02 pm

Dear Antonio,
with absolute path for me, it is working.
I found this
https://webmasters.stackexchange.com/qu ... path-links
So, there does not seem any speed difference.
Best regards,
Otto
********************************************************************
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: Great news regarding mod_harbour CGI !!!

Postby Antonio Linares » Fri Nov 25, 2022 5:39 pm

What you get is robustness

Enviado desde mi SM-M325FV mediante Tapatalk
regards, saludos

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

Re: Great news regarding mod_harbour CGI !!!

Postby Massimo Linossi » Fri Nov 25, 2022 7:34 pm

Hi Antonio.
First of all happy birthday !!!
I'm trying to install your new version of modharbour on one Linux machine with Centos 7, 64bits.
This is hosted on Aruba, in Italy and the problem is that I have access only to FTP server, I cannot
copy the conf file for Apache and I can use only the cgi-bin folder or the root one.
Is there any chance to install modharbour without changing Apache configuration ?
Thanks a lot
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Great news regarding mod_harbour CGI !!!

Postby Massimo Linossi » Mon Dec 05, 2022 5:58 pm

Hi Antonio.
Could be possible to have that PHP workaround that you use for launching modharbour on non dedicated servers ?
Thanks a lot.
Massimo
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Great news regarding mod_harbour CGI !!!

Postby Antonio Linares » Tue Dec 06, 2022 9:12 am

Dear Massimo,

This is the way we run modHarbour CGI on bluehost using PHP as a bridge:

modpro.php
Code: Select all  Expand view
<?php
   $result = shell_exec( "./modharbour modpro.prg" );
   print( substr( $result, strpos( $result, chr( 10 ).chr( 10 ) ) + 1 ) );
?>


You can test it here:
https://www.fivetechsoft.com/counter/modpro.php

Saved on the mod_harbour repo:
https://github.com/FiveTechSoft/mod_harbour/tree/master/linux/php_bridge
regards, saludos

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

Previous

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 4 guests