Perl Script causing 500 Internal Error

  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

HI,

I'm trying to install a simple script...

http://www.livetamil.com/scripts/netpals/

But when I go to open the config.pl file I get a 500 error. What could be the cause?


Here is the install readme file:

#################################################################################
## ##
## Script Name : LiveTamil NetPals Script ##
## Script By : Thaneshshan.S ##
## Email Contact : livetamil@hotmail.com ##
## Copyrights : LiveTamil Networks (c) 2003 LT ##
## Version : 1.2.9 ##
## Created : 01/08/2003 ##
## Home Page : http://www.livetamil.com/scripts ##
## SKU # : LTPALSTSXSHANLATEST70007 ##
## Help : http://www.livetamil.com/board ##
## ##
#################################################################################


## COPYRIGHT NOTICE: ############################################################
## ##
## Copyright 2003 LiveTamil Networks. All Rights Reserved. ##
## ##
## To all the cool people out there... Thankyou for using my script for free. ##
## But, in exchange please help me with something that you can. To keep the ##
## upcoming versions of this script free please show my copyrights in your ##
## netpals page and help us to debug it. ##
## ##
## Also you should be aware that me or LiveTamil Networks is not responsible ##
## for any damage that might arise using this script. ##
## ##
## Good Luck. ##
## ##
## Thaneshshan .S ##
#################################################################################

PLEASE READ THIS IMPORTANT NOTE:

If you have the ability to write in a different language other than in English, please
help us to translate this script into your language. Please checkout this url for more details.
http://www.livetamil.com/scripts/netpals/skins.shtml

Thank You. :)
#################################################################################

THIS README FILE IS JUST A SMALL GUIDE ;)
Note:
Any minor errors that you find... doesn't matter how small it is, please report it to us.
Feel free to use our discussion board if you have any new ideas or concerns about this script.
If you are good in ENGLISH please edit this README file. Your name will go under credits.
Thank You for working together.
http://www.livetamil.com/board

1.1 UPLOADING CONTENTS.

Folder Setup 1 :

# Please use "SETUP 1" only if your host allows to execute cgi scripts outside cgi-bin
# if not use "SETUP 2"

\www or \public_html or\cgi-bin (recommended)

\data
|- data.dat [ASCII UPLOAD] [CHMOD 751]
|-.htaccess [ASCII UPLOAD] [CHMOD 755]
|- converter.cgi [UPLOAD IF YOU NEED IT]
\icons
\ST1
|- all gifs and jpegs [BINRY UPLOAD]
\templates
|- admin.ltpals [ASCII UPLOAD] [CHMOD 777]
|- add.ltpals [ASCII UPLOAD] [CHMOD 777]
|- edit.ltpals [ASCII UPLOAD] [CHMOD 777]
|- search.ltpals [ASCII UPLOAD] [CHMOD 777]
|- view.ltpals [ASCII UPLOAD] [CHOMD 777]
|- form.ltpals [ASCII UPLOAD] [CHMOD 777]
\skins
|- style1.pl [ASCII UPLOAD] [CHOMD 755]
\photos
\- add.cgi [ASCII UPLOAD] [CHMOD 755]
- admin.cgi [ASCII UPLOAD] [CHMOD 755]
- common.pl [ASCII UPLOAD] [CHMOD 755]
- config.pl [ASCII UPLOAD] [CHMOD 755]
- edit.cgi [ASCII UPLOAD] [CHMOD 755]
- hostname.txt [ASCII UPLOAD]
- index.cgi [ASCII UPLOAD] [CHMOD 755]
- info.cgi [ASCII UPLOAD] [CHMOD 755]
- search.cgi [ASCII UPLOAD] [CHMOD 755]
- sendmail.cgi [ASCII UPLOAD] [CHMOD 755]
- upload.cgi [ASCII UPLOAD] [CHMOD 755]

- README.txt [DON'T UPLOAD]

Folder Setup 2 :

\cgi-bin

\data
|- data.dat [ASCII UPLOAD] [CHMOD 751]
|-.htaccess [ASCII UPLOAD] [CHMOD 755]
|- converter.cgi [UPLOAD IF YOU NEED IT]
\templates
|- admin.ltpals [ASCII UPLOAD] [CHMOD 777]
|- add.ltpals [ASCII UPLOAD] [CHMOD 777]
|- edit.ltpals [ASCII UPLOAD] [CHMOD 777]
|- search.ltpals [ASCII UPLOAD] [CHMOD 777]
|- view.ltpals [ASCII UPLOAD] [CHOMD 777]
|- form.ltpals [ASCII UPLOAD] [CHMOD 777]
\skins
|- style1.pl [ASCII UPLOAD] [CHOMD 755]
\- add.cgi [ASCII UPLOAD] [CHMOD 755]
- admin.cgi [ASCII UPLOAD] [CHMOD 755]
- common.pl [ASCII UPLOAD] [CHMOD 755]
- config.pl [ASCII UPLOAD] [CHMOD 755]
- edit.cgi [ASCII UPLOAD] [CHMOD 755]
- hostname.txt [ASCII UPLOAD]
- index.cgi [ASCII UPLOAD] [CHMOD 755]
- info.cgi [ASCII UPLOAD] [CHMOD 755]
- search.cgi [ASCII UPLOAD] [CHMOD 755]
- sendmail.cgi [ASCII UPLOAD] [CHMOD 755]
- upload.cgi [ASCII UPLOAD] [CHMOD 755]

- README.txt [DON'T UPLOAD]

\public_html
\photos
\icons
\ST1
|- all gifs and jpegs [BINRY UPLOAD]
\- index.shtml [IF YOU ARE FAMILIAR WITH SSI USE THIS, FILE NOT INCLUDED]
- search.shtml [IF YOU ARE FAMILIAR WITH SSI USE THIS, FILE NOT INCLUDED]
- edit.shtml [IF YOU ARE FAMILIAR WITH SSI USE THIS, FILE NOT INCLUDED]
- add.shtml [IF YOU ARE FAMILIAR WITH SSI USE THIS, FILE NOT INCLUDED]


1.2 CONFIGURATION

Instructions :
Open config.pl and edit all variables. Detailed instructions available in script. Once you
edit that upload it and you are ready to go. Check if the script works by typing in the url to
your main directory. If index.cgi doesn't get executed in your server use index.shtml instead.
The SSI that has to go in your index.shtml is <!--#exec cgi="index.cgi" -->

Note : Make sure all your url are pointing to your domain. Please do not load the images off
livetamil.com.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I know this is going to sound like a dumb question, but what did they tell you when you posted at their help board?

http://www.livetamil.com/board
  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

ATNO/TW wrote:
I know this is going to sound like a dumb question, but what did they tell you when you posted at their help board?

http://www.livetamil.com/board


No reply yet. By the looks of their board, it's fairly dead. :(
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

My first guess would be you don't have all your CHMOD settings correct for all the files listed above. Without knowing what you actually did, it's really hard to tell.
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

If you have access to your server logs you could try looking in the error log to see if there is more information about what's causing the problem.
  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

ATNO/TW wrote:
My first guess would be you don't have all your CHMOD settings correct for all the files listed above. Without knowing what you actually did, it's really hard to tell.


I've checked and re-checked :(
  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

The sad part is that it seems like a fairly easy script. :(
  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

Would anyone be able to help me out w/ this? I'm sure it wouldn't take too long. I just need to get it up on a site so that I can test it out and play around w/ it.

Any help woudl be greatly appreciated.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

This is why I prefer PHP :)

One things that springs to mind is the format by which the files were saved by the programmer, or how they were transferred to the box through FTP.

There are two different formats of text files

Windows, with lines ending in #13#10
Unix, with lines ending in I believe just #10 (but it could be just #13, I don't remember off-hand)..

Anyways, if they were saved in Windows format, then FTP'd over as Binary, Perl wouldn't understand the extra character on the end of each line, and spew out a "500 - Internal Error", so check that one.

To be safe, I always upload in ascii format, regardless of what the local format is. That way, the FTP software can figure out what format the text file is and whatever it is on your end, it's correct on the other end ("Premature end of script headers" in the error log is often brought up by this particular annoyance).

But like RichB says, if you have access to the error logs, have a look at those for more of a clue. Failing that, contact your host to see if they can look at the error logs for a lil more insight.
  • homer simpson
  • Student
  • Student
  • homer simpson
  • Posts: 96

Post 3+ Months Ago

UPDATE:

I got the script installed but I'm running into a problem uploading pics. I emailed the script guys so hopefully they'll get back to me regarding that.

It's weird if I create the folder outside of cgi-bin for images to go to, I get a 500 Internal Server error again, but if I keep the folder inside the cgi-bin, when people upload pics they get permission denied error.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Yeah, you probably need to chmod 777 the upload folders so that the script can write to them.

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 75 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.