CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

Post #1 of 8 (1676 views)
Making a x32 Perl Script Run on x64 Perl Hosting Can't Post

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

Post #2 of 8 (1674 views)
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

In what way is it failing?

Do you know how to program in Perl?


andypandy1962
Novice

Sep 11, 2017, 7:00 AM

Post #3 of 8 (1662 views)
Re: [FishMonger] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

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

Post #4 of 8 (1591 views)
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

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

Post #5 of 8 (1582 views)
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

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

Post #6 of 8 (1578 views)
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

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

Post #7 of 8 (1576 views)
Re: [andypandy1962] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post


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

Post #8 of 8 (1563 views)
Re: [FishMonger] Making a x32 Perl Script Run on x64 Perl Hosting [In reply to] Can't Post

ok thanks for your help.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives