Recent

Author Topic: Free CGI hosting for Lazarus binaries?  (Read 4969 times)

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Free CGI hosting for Lazarus binaries?
« Reply #15 on: June 23, 2023, 06:33:35 pm »
But I didn't know SourceForge (where I have had an account for almost twenty years now, but rarely use since the advent of GitHub) provided support for CGI programs! Could you please elaborate?

Each project gets a webspace, where you can upload anything

I assume they mean compiled Perl etc. And not compiled FPC (because that's not a scripting language).

They mean anything compiled

rvk

  • Hero Member
  • *****
  • Posts: 6953
Re: Free CGI hosting for Lazarus binaries?
« Reply #16 on: June 23, 2023, 07:18:15 pm »
I assume they mean compiled Perl etc. And not compiled FPC (because that's not a scripting language).
They mean anything compiled
If that's true then I wonder if a CGI van overcome this limitation?

Quote
Outbound connectivity
Due to past abuse, outbound access to other hosts from the web servers is strictly prohibited and is blocked by firewall rules. This includes access to other SourceForge.net hosts; the only exception to this policy is access to our project database servers. SCM server access is not available from the project web servers. Any content needed from other SourceForge.net hosts should be retrieved and stored as a file or database entry that may then be accessed from scripts on the project web servers.

(And I understand TS wants to gather info from other sources)

domasz

  • Hero Member
  • *****
  • Posts: 618
Re: Free CGI hosting for Lazarus binaries?
« Reply #17 on: June 23, 2023, 07:26:48 pm »
The second problem is dependencies. Most native Linux applications have a set of dependencies, like a certain libc version, or other libraries like sqlite, and these often in specific versions.
Here's a crazy idea that I actually used successfully on Debian- compiling the program in Lazarus for Windows and then using Wine on Debian to run it.

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #18 on: June 23, 2023, 07:52:20 pm »
Hi, @BenBela!

Quote
Each project gets a webspace, where you can upload anything

I surely know this, I have still several pages hosted there! What surprised me is that they would allow the use of compiled CGI programs as binary executables (they don't).

Also, my application is a mashup, is collates data from several public online biodiversity databases and presents the results to the user in a single page; I doubt the security-concerned boys at SourceForge would allow this (even if the data sources I use are all public and don't pose any 'security risks'; but the Web of today is a world of paranoia and evil...)

Best regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

delphius

  • Jr. Member
  • **
  • Posts: 83
Re: Free CGI hosting for Lazarus binaries?
« Reply #19 on: June 26, 2023, 04:59:51 pm »
my application is a mashup, is collates data from several public online biodiversity databases and presents the results to the user in a single page

I registered a free account on the first available free hosting service, which supports executing Perl and CGI scripts, at https://freehostingnoads.net/

I signed up, obtained the hosting, and took a free domain at http://delphius.atwebpages.com/.

I created a test Perl script, it works http://delphius.atwebpages.com/index.html

And then I made a "Hello, World!" free pascal app and cross-compiled it for Linux.
I placed it next to the Perl script.
You can find it at http://delphius.atwebpages.com/test.cgi.

Everything is working fine  ::)

Either I don't fully understand the task, or someone is unnecessarily dramatizing the situation.

Please don't consider it as an advertisement, but I genuinely clicked on the first available hosting service that provides the required services.
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #20 on: June 26, 2023, 05:10:08 pm »
Ave, @delphius!!!

Quam tu?.

Great, I will take a look at that ASAP! Sure, you did understand the problem and solved it nicely!

"One does need an elephant when just a horse suffices to reach the nearest town". (I presume you understand what I mean  ;D).

Gratus!

With warmest regards,
« Last Edit: June 26, 2023, 08:26:37 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #21 on: June 26, 2023, 11:02:37 pm »
Hi, @delphius!

Unfortunately, I have yet not even the opportunity to test any CGI program in that free hosting server because, after completing the registration process, I got the error message:

Quote
(0x060) There is a problem at the moment! Please try again later

I did not received any verification/activation email as should be expected.

When I "tried again later", I restarted the registration process, filling-up the required fields, but then I have been presented with a screen saying that:

Quote

It appears that your are already a member!

Due to the large volume of signups we only allow one free account per user.

1. If you still wish to host your site with us, please choose a paid hosting plan or buy a domain with the free plan!

2. If you have forgotten your account password, please use our lost password tool.

3. If you feel that this message is an error, and you do not have an account with us, please contact our support team.


I then went back to the registration screen and there I found a link saying that "If you already have an account with us click here".

When I "clicked there", I filled-up my email and password and then the message below appeared:

Quote
The user you have specified does not exist.

So, I feel like Schrödinger's cat, existing and not existing at the same time as a registered user of that hosting service!

Perhaps it is not necessary to remark that there are no "lost password tool" anywhere in that website.

With warmest regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

delphius

  • Jr. Member
  • **
  • Posts: 83
Re: Free CGI hosting for Lazarus binaries?
« Reply #22 on: June 27, 2023, 05:30:50 am »
after completing the registration process, I got the error message:

Some kind of mysticism. The whole registration process from finding the right site to the moment when I started uploading the script to the hosting took about three minutes   :(
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Free CGI hosting for Lazarus binaries?
« Reply #23 on: June 27, 2023, 10:53:02 am »
If it is just for development I can create a subdomain for you that supports 64 bit - linux cgi binaries at http://thaddy.org .
It is http only, but for testing cgi's that is perfectly reasonable. My https sites are not on the same server. For permanent hosting - where you need https -this is not suitable.
But feel free to ask if it is just for experiments.
I can also setup a database for you:progress or mariadb.
( note https is possible to test with a self-signed certificate that you have to accept in your key chain and I will provide )
This particular server is my test server and rather isolated from anything else.
Only access is through certificate, not password, for (s)ftp and ssh access.
The server drops any password access attempts > /dev/null...
« Last Edit: June 27, 2023, 11:05:59 am by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #24 on: June 27, 2023, 01:06:45 pm »
Ave, @delphius!

Quote
Some kind of mysticism

By Jove, it may be!

Best regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #25 on: June 27, 2023, 01:15:08 pm »
Hi, @Thaddy!

Quote
If it is just for development I can create a subdomain for you that supports 64 bit - linux cgi binaries

Thanks a lot for your kind offer, but I will have to decline because I am looking for a server where I can host my application on a more or less permanent basis, open to use by anyone. For development I already use a WAMP/LAMP local server.

That said, my application is just a simple (although hundred of lines long) old-style CGI program which takes a biological species name and fetches data from several online biodiversity databases, presenting them in a single page for a quick-and-dirty look at what data is available for the target species (see attached image).

The program does not use any database on the server (MySQL, MariaDB, etc.) and the full source code will be available on my GitHub repository as soon as I finish some needed polishing and documentation of the code.

With warmest regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

delphius

  • Jr. Member
  • **
  • Posts: 83
Re: Free CGI hosting for Lazarus binaries?
« Reply #26 on: June 27, 2023, 07:30:11 pm »
By Jove, it may be!

in my opinion, miracles certainly happen, but quite rarely.

I wrote to you in pm, may be it will help.
fpmtls - ssl/tls 1.3 implementation in pure pascal
fpmailsend - sending a simple email message
pascal-webui - use web browser as gui and fpc as backend

maurobio

  • Hero Member
  • *****
  • Posts: 640
  • Ecology is everything.
    • GitHub
Re: Free CGI hosting for Lazarus binaries?
« Reply #27 on: June 27, 2023, 10:42:49 pm »
Ave, @delphius!

Quote
in my opinion, miracles certainly happen, but quite rarely.

Otherwise, they would be "miracles"!  ;)

Quote
I wrote to you in pm, may be it will help.

Thank you very much!  :D

With warmest regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home

 

TinyPortal © 2005-2018