Page 3 of 3

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 10:08 am
by Antonio Linares
Here it is working perfectly fine.

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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 10:19 am
by Otto
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.

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 10:28 am
by Otto
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 11:22 am
by acuellar
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 12:12 pm
by Antonio Linares
Muchas gracias! :-)

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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 12:20 pm
by giuliano
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 12:28 pm
by Antonio Linares
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 :-)

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 12:46 pm
by acuellar
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 12:52 pm
by giuliano
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 3:02 pm
by Otto
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 5:39 pm
by Antonio Linares
What you get is robustness

Enviado desde mi SM-M325FV mediante Tapatalk

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Fri Nov 25, 2022 7:34 pm
by Massimo Linossi
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

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Mon Dec 05, 2022 5:58 pm
by Massimo Linossi
Hi Antonio.
Could be possible to have that PHP workaround that you use for launching modharbour on non dedicated servers ?
Thanks a lot.
Massimo

Re: Great news regarding mod_harbour CGI !!!

PostPosted: Tue Dec 06, 2022 9:12 am
by Antonio Linares
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