JohnnyR
Member
Registered: 21st Sep 06
Location: Sheffield
User status: Offline
|
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
|
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
|
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
|
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
|
Perl is a pain in the ass, when it doesn't work all you ever seem to get is a 500 error
|