corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Perl Gurus?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Perl Gurus?
JohnnyR
Member

Registered: 21st Sep 06
Location: Sheffield
User status: Offline
8th Feb 11 at 09:45   View User's Profile U2U Member Reply With Quote

Just trying to move a system over to some new hosting that was developed by a bloke who previously worked here.

Managed to overcome a few issues, but just got one more thats stopping me from progressing. It's a stock ordering system for some internal stock management system we have.

The code is here...http://www.copypastecode.com/63326/

The servers hostname I'm moving it FROM is ds4190.dedicated.turbodns.co.uk which is referred to as both $SMTP_SERVER and $WEB_SERVER. If I leave them as it is on the new server, I obviously dont get an email, however the final order confirmed page still appears and the stock order is saved. However if I change them both to "localhost", I get an email and the order is still placed (which is what I want) but I get an Internal Server Error 500.

Anyone see anything in the code that might be causing this?

Much appreciated if anyone can help!!
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
8th Feb 11 at 10:42   View User's Profile U2U Member Reply With Quote

I would be looking at the web server's error_log file first, to see where exactly in the code has caused the 500 error.

Would normally give the date and time, the URL of the script and the line number in the file where it's fallen over.

If the script worked before, then I would say the problem is down to some configuration issue with your new server.
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
8th Feb 11 at 10:45   View User's Profile U2U Member Reply With Quote

I'd just echo Sam, 500 error could be a whole host of things. Check your logs, and I'd guess its due to security/closed ports or similar if it worked before.
JohnnyR
Member

Registered: 21st Sep 06
Location: Sheffield
User status: Offline
8th Feb 11 at 12:50   View User's Profile U2U Member Reply With Quote

Cheers lads, Error Logs in cpanel weren't much use though, unfortunately.

Just ended up scrapping that code and finding one online that worked perfectly

[Edited on 08-02-2011 by JohnnyR]
ed
Member

Registered: 10th Sep 03
User status: Offline
8th Feb 11 at 16:05   View User's Profile U2U Member Reply With Quote

Perl is a pain in the ass, when it doesn't work all you ever seem to get is a 500 error

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
web design / perl help needed! Cosmo Geek Day 15 1324
18th Mar 03 at 23:01
by Trotty
 
Anyone online who's good with Perl ? GREG 1 Geek Day 6 852
13th Apr 04 at 18:12
by GREG 1
 
Thoughts on this Website im making? PainZ General Chat 24 1256
18th Apr 04 at 15:21
by sassyminx
 
Nice day so..... washed the car and took some pics! Rhino General Chat 29 1308
21st Apr 05 at 10:12
by Rhino
 
Web wiz Basscrazy Geek Day 6 648
31st Jan 07 at 01:33
by drax
 

Corsa Sport » Message Board » Off Day » Geek Day » Perl Gurus? 29 database queries in 0.0149589 seconds