Will XData server work on Linux / Apache? Do I have to use sparkle?
I am still confused.
Do I use
https://doc.tmssoftware.com/biz/sparkle/guide/server.html#apache-based-server
or
https://doc.tmssoftware.com/biz/sparkle/guide/server.html#indy-based-server
2nd question - do I need to install PAServer on the linux?
- TMS XData can run on Linux
- TMS XData uses the TMS Sparkle layer for its HTTP(s) communication
- Like any other compiling/deploying for Linux, PAServer is needed
Installing the Platform Assistant on Linux - RAD Studio
I am still having trouble getting GoDaddy to give me Terminal access (so I can install PAserver).
I am used to writing web stuff in PHP, where you just have a PHP file to respond like a webserver.
Do I need to write an Apache module? I despair, trying to install that on GoDaddy.
You can use both. I personally prefer using Indy, and if speed/stability is a suport concern, use it behind a reverse proxy like Traefik or Nginx.
I find Apache too complicated to develop for and debug using Delphi.
Now, to use (virtually any) server built in Delphi, regardless of Sparkle or not, you should use a VPS, i.e., a cloud machine you have full control, so you can remotely log to it (using RDP if Windows, or SSH if Linux) so you can deploy and run your servers there.
Environments like GoDaddy are usually very controlled and you have limited access to it, they will usually provide you access to only the tools they allow you to use, like PHP, Apache, etc.. I don't know if you can install a custom DLL module in GoDaddy's Apache.
At the moment I just need something working, so I can progress in the rest of the project. I see that there a template called Console XData server. Is there anything wrong in using it?
I have tried test Servers from just Delphi compiled to Linux, a few years ago. And they worked without installing an Apache module. Does it have to be an Apache module?
There is nothing wrong in using a Console server. You can create a simple empty Delphi console application, and then create an Indy-based server according to the documentation:
https://doc.tmssoftware.com/biz/sparkle/guide/server.html#indy-based-server
This will create simple Linux console application that you can run to start the server. But then of course you need a cloud machine where you can run arbitrary console applications.
I do have access to SSL I was trying to not use it as the stupid cpanel makes the passwords for ftp, ssl and login the same., I would like to make the passwords for ftp and ssl longer as normal login is protected by MFA.
I can also start it from a PHP script from my admin page.
Thanks, this will allow me to complete this stage. I can decide later which way to go. Maybe I have to get the client to subscribe to AWS. Which is another learning curve for me, so I am delaying it.