Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vbvd1s$c42h$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vbvd1s$c42h$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Newsgroups: comp.lang.ada
Subject: Re: Ada/GNAT/AWS-friendly web hosting
Date: Thu, 12 Sep 2024 20:48:29 +0200
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <vbvd1s$c42h$1@dont-email.me>
References: <vbutl5$8a99$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Sep 2024 20:48:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8429d6de9154017665bd68fe9f1c7795";
	logging-data="397393"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19/19edtz9uas86eRF6JopbVrjOdAERC88="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7NKv1HDMutXlZgokPkn0142ZUqA=
Content-Language: en-US
In-Reply-To: <vbutl5$8a99$5@dont-email.me>

On 2024-09-12 16:25, Marius Alves wrote:
> Researching how to build an HTTP server (serving a website) on a local 
> machine (MacOS) using AWS (Ada Web Server) and deploy it on a web 
> hosting provider (e.g. 1dollar-webhosting.com).

That depends on what the provider would allow you to upload to the host. 
Likely nothing executable... (:-))

> If the host runs on Linux then cross-building (from MacOS to Linux) 
> required, right? GNAT does that, right?

It is possible, but far simpler would be a virtual machine running 
Linux. E.g. I compile for Linux targets on virtual machines. Only for 
ARM I am using physical machines. You must know what kind of Linux your 
provider has in order to choose the right version of the libc etc.

> The host is already running an HTTP server program (probably Apache). 
> Must it be turned off? How?

Ask the provider. You would need the ports free.

> In general, can the executable be launched on a VPS (Virtual Private 
> Server)? Which port?

No idea.

> Will dynamic linking work? I'm guessing not, so, static; but then, will 
> GNAT integrate the right libraries for Linux in the executable?

If you ship the libraries together with the server. Then if the host 
runs Apache it must have some TLS library installed. You must learn the 
version an link against it.
In any case you need either OpenSSL or else GNUTLS. The HTTP server from 
Simple Components can use both. I believe that either can be built as a 
static library. I see no reason why AWS could not be linked statically.
BTW you must maintain certificates on the server.

> Will "Community GNAT" do? (Instead of GNAT Pro.)

I am not sure if all-static build were possible, e.g. libc, libgnat.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de