dwarfnet Posted March 16, 2019 Share Posted March 16, 2019 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 More sharing options...
Luigi123 Posted March 16, 2019 Share Posted March 16, 2019 Moved to Customer Service. Link to comment Share on other sites More sharing options...
Byron Posted March 16, 2019 Share Posted March 16, 2019 Does your file have file permissions 755 Link to comment Share on other sites More sharing options...
dwarfnet Posted March 16, 2019 Author Share Posted March 16, 2019 Yes permissions were set to 755This issue is with all the perl scripts on the site (the site dwarfnet.com is new to this hosting company, the scripts have worked fine on other servers for 20 years) Link to comment Share on other sites More sharing options...
Byron Posted March 16, 2019 Share Posted March 16, 2019 Add this to your shebang line: -w So that it looks like this: #!/usr/bin/perl -w Link to comment Share on other sites More sharing options...
dwarfnet Posted March 16, 2019 Author Share Posted March 16, 2019 (edited) 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 March 16, 2019 by dwarfnet Link to comment Share on other sites More sharing options...
Byron Posted March 16, 2019 Share Posted March 16, 2019 (edited) 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 March 17, 2019 by Byron Link to comment Share on other sites More sharing options...
dwarfnet Posted March 17, 2019 Author Share Posted March 17, 2019 using <!--#exec cgi="../cgi-bin/fortunecookie.cgi"--> I will try the <!--#include virtual="../cgi-bin/fortunecookie.cgi" --> Link to comment Share on other sites More sharing options...
dwarfnet Posted March 17, 2019 Author Share Posted March 17, 2019 <!--#include virtual="/cgi-bin/fortunecookie.cgi" -->or<!--#include virtual="../cgi-bin/fortunecookie.cgi" --> didn't work, still give error any other sugeestions?? Link to comment Share on other sites More sharing options...
wolstech Posted March 17, 2019 Share Posted March 17, 2019 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 More sharing options...
dwarfnet Posted March 17, 2019 Author Share Posted March 17, 2019 Yes I realize it is a bit "old school". Then again, the site is 20 years old... (it was cutting edge then... lol)I may just have to teach myself php quickly if we can't get this figured out Link to comment Share on other sites More sharing options...
Byron Posted March 17, 2019 Share Posted March 17, 2019 It's working on Tommy, just not Johnny. I think it has something to do with: Options Indexes FollowSymLinks Includes Link to comment Share on other sites More sharing options...
dwarfnet Posted March 17, 2019 Author Share Posted March 17, 2019 Could I get moved to Tommy then?? or is there something I can do to make Johnny work? Link to comment Share on other sites More sharing options...
qsgt Posted March 17, 2019 Share Posted March 17, 2019 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 More sharing options...
wolstech Posted March 17, 2019 Share Posted March 17, 2019 Let's wait and see if Krydos can fix this on Johnny or not. If he can't, perhaps we can just move you because it's the only server it works on. Link to comment Share on other sites More sharing options...
Recommended Posts