Jump to content

[Solved] cgi not working


dwarfnet

Recommended Posts

No perl scripts seem to work on the johnny server.

I even tried your basic "hello world" script copied from this site and still just get 500 server errors.

 

I tried renaming the .htacess file but that didn't help

 

Any suggestions would be appreciated

 

Thank you

Link to comment
Share on other sites

Okay, that got the script working if you do a direct call, however the script still errors when called from a webpage

 

Example: http://dwarfnet.heliohost.org/cgi-bin/fortunecookie.cgi

 

     will return the fortune line

 

however clicking on the fortunecookie at http://dwarfnet.heliohost.org/fortunecookie will still cause a 500 server error even though it is calling the same script.

Edited by dwarfnet
Link to comment
Share on other sites

It's been a long time since of used shtml (ssi). Are you including your script like this?

<!--#include virtual="/cgi-bin/fortunecookie.cgi" -->

or

<!--#include virtual="../cgi-bin/fortunecookie.cgi" -->

Depending on how far up you are in your directory.

Edited by Byron
Link to comment
Share on other sites

I'll let our other root admin Krydos take a look at this and see if he has any input on why this might be happening.

 

In fairness, this isn't something we see used every day anymore, so you may very well be the first to use this functionality in quite some time...I know from a support standpoint you're the first person I've come across in my 8 years with HelioHost to ask for help using server-side includes. In fact, Perl in general doesn't get asked about much, let alone SSI. Python is the more common CGI language we deal with these days (usually Django apps).

 

Perl and SSI are very old school ways of building interactive sites (though it should be supported as far as I'm aware).

Link to comment
Share on other sites

An admin can move your account to Tommy if you donate $1USD or more using the instructions on https://www.heliohost.org/donate/. You can also try to sign up for a free account but the free Tommy accounts usually fill very quickly. The status of free account registrations can be seen on http://heliohost.grd.net.pl/monitor/ signups reset at midnight UTC. Donating means you don't have to do anything and you can get an account even if free registrations are closed for the day. If you donate please post your transaction ID in this thread.

 

If you opt for a free account you will need to backup and delete your Johnny account first as you are only allowed one account.

 

Otherwise just persevere with trying to get it working on Johnny. Good Luck.  

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...