Hello ,
I've downloaded from GitHub mod_harbour ( with all sources ) and compiled it ( lib and module ) under Linux ( Ubuntu 20.04 ) .
It seems not working correctly when running a simple prg because apache.prg probably has an error in this code:
if Empty( GetEnv( "GATEWAY_INTERFACE" ) )
QOut( "Attention: This is modharbour CGI version and has to be executed" )
QOut( "from the server as a cgi-bin, i.e.:" )
QOut()
QOut( "http://server_address/cgi-bin/" + SubStr( hb_ArgV( 0 ), RAt( If( lWindows, "\", "/" ), hb_ArgV( 0 ) ) + 1 ) + ;
"?prg=test.prg")
QOut()
QOut( "(c) FiveTech Software 2012-2022" )
QOut( "www.fivetechsoft.com" )
QOut( "https://github.com/FiveTechSoft/mod_harbour" )
QOut()
QUIT
endif
If i comment these lines everything works perfectly .
Bye
Thanks in advance