cancel
Showing results for 
Search instead for 
Did you mean: 

CGI script supported languages (for hostopia cgi-bin)

starfry
Rising Star
Posts: 283
Thanks: 12
Fixes: 2
Registered: ‎14-09-2007

CGI script supported languages (for hostopia cgi-bin)

What languages are supported for CGI scripts in the cgi-bin directory:
bash (yes, but the version is 2.x)
what about perl python, ruby ?
any others?
3 REPLIES 3
bobpullen
Community Gaffer
Community Gaffer
Posts: 14,913
Thanks: 2,524
Fixes: 168
Registered: ‎04-04-2007

Re: CGI script supported languages (for hostopia cgi-bin)

Perl and Python are supported. I don't think Ruby is, although I might be mistaken:
$ perl -v
This is perl, v5.8.0 built for i586-linux-thread-multi

$ python -v
Python 2.7.3

$ ruby -v
-bash: ruby: command not found

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

starfry
Rising Star
Posts: 283
Thanks: 12
Fixes: 2
Registered: ‎14-09-2007

Re: CGI script supported languages (for hostopia cgi-bin)

That's interesting, because I found the versions to be different:

Bash GNU bash, version 2.05b.0(3)-release (i686-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc.
Ruby
Python 2.2.1 (#1, Feb 3 2005, 15:45:36)
Perl This is perl, v5.10.1 (*) built for i386-linux-thread-multi

That was on "web6c50.megawebservers.eu" but that varies on each request (I susepct there's a load balancer?)
I couldn't get an answer to "python -v", or "python --version", I had to do it the long way: python -c "import sys; print(sys.version)"
It would be good to have Ruby, if that's at all possible. Also, do you know if "fastcgi" is supported at all ?
bobpullen
Community Gaffer
Community Gaffer
Posts: 14,913
Thanks: 2,524
Fixes: 168
Registered: ‎04-04-2007

Re: CGI script supported languages (for hostopia cgi-bin)

I ran my commands from the shell environment which you won't have access to. Whilst it may defy logic, the two environments are treated slightly differently (Hostopia's set-up is pretty non-standard). Having said that, it would be interesting to see the state of play once your most recent problem has been resolved...
From phpinfo (which again, you're unable to execute):
Server API: 	CGI/FastCGI 

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵