Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Making a x32 Perl Script Run on x64 Perl Hosting



andypandy1962
Novice

Sep 9, 2017, 9:19 AM


Views: 6859
Making a x32 Perl Script Run on x64 Perl Hosting

Hi,

I am the software owner of a great autoresponder script written in perl a while back, that does not work on 64 bit perl hosting. It used to work fine for years, but most hosts seem to run 64 bit perl and it no longer works. The script uses mysql for the database.

Would anyone fancy trying to make it work? I can give you a copy of the script to install which was sold for $97 Hopefully it does not require an full re-write, and maybe is a module in the script?

I use 1and1 for my linux hosting.

Any help would be appreciated. Many thanks in advance/

If this is in wrong forum etc please move or I will move it, thanks.


FishMonger
Veteran / Moderator

Sep 9, 2017, 1:33 PM


Views: 6857
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting

In what way is it failing?

Do you know how to program in Perl?


andypandy1962
Novice

Sep 11, 2017, 7:00 AM


Views: 6845
Re: [FishMonger] Making a x32 Perl Script Run on x64 Perl Hosting

Basically, it won't load or display the cgi pages, no I don't know how to program, thanks.

Error 500 - Internal server error

An internal server error has occured!
Please try again later.


(This post was edited by andypandy1962 on Sep 11, 2017, 7:26 AM)


andypandy1962
Novice

Sep 16, 2017, 4:06 AM


Views: 6774
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting

I have attached the main file located here http://dissdomesticcleaning.co.uk/ar365/responder.cgi

Is there anything in the code obvious to make it not run on 64x

Perm is 755

Thanks v much
Attachments: responder.cgi (143 KB)


Chris Charley
User

Sep 16, 2017, 11:47 AM


Views: 6765
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting

1 and 1 has a web page discussing how to go about finding the error (log files, for one thing).

How to Fix HTTP error code “500 internal server error”

I didn't give the article a thorough read, but maybe you can find the error there.


FishMonger
Veteran / Moderator

Sep 16, 2017, 12:59 PM


Views: 6761
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting

Add this line before the other use statement.

Code
use CGI::Carp qw/fatalsToBrowser/;

That will display the errors from the log file.

If it doesn't show and of the errors, then that would mean that the script is not being executed.

BTW, the problem you're having is not due to 32bit vs 64bit. The problem is more likely to be that this old script is needing old modules which are not installed on the newer system. Or, path to perl in the shebang line (first line in the script) does not have the correct path.


(This post was edited by FishMonger on Sep 16, 2017, 1:02 PM)


FishMonger
Veteran / Moderator

Sep 16, 2017, 1:05 PM


Views: 6759
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting


Quote
I am the software owner of a great autoresponder script written in perl a while back


It "might" have been considered "great" 20 years ago, but by today's coding standards it's considered junk.


andypandy1962
Novice

Sep 17, 2017, 10:18 AM


Views: 6746
Re: [FishMonger] Making a x32 Perl Script Run on x64 Perl Hosting

ok thanks for your help.