+ Reply to Thread
Results 1 to 6 of 6

Thread: 500 error when running perl

  1. #1
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    500 error when running perl

    I am trying to run google sitemap generator (in perl) from the cgi-bin directory. However, I get a 500 error. If have a shebang line, so I don't see any other obvious problem.
    Is there a way I could have access to apache error log? (the one in cPanel doesn't show those kind of error.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  2. #2
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: 500 error when running perl

    post ur code. most likely it's a permission issue, make sure everyone has atleast execute
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: 500 error when running perl

    it's pretty long, you better view it here : http://afrosoft.co.cc/cgi-bin/view_script.php
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: 500 error when running perl

    You're right, that is long. Debugging it would take a lot of time, but it was very useful for you posting that. Thank you.

    You'll need to open a Support Ticket, but see if you can somehow manage to redirect the warnings/errors before it's encountered:
    http://www.nntp.perl.org/group/perl..../msg90416.html

    A posibility is to have a script call your script and have that pop out the error. Another thing you could do is set up your own server and run Eclipse to debug your Perl.

    But still... make sure the file permissions are acceptable.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  5. #5
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: 500 error when running perl

    I'm going to try to redirect all error message, if I don't find any error, I'm going to open a support ticket. BTW, I have 644 permission on this file.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  6. #6
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: 500 error when running perl

    Perl scripts need execution permissions, so chmod it to 755. If there's still a problem, then you probably have an error in your code as well. However that link you posted no longer shows your code, so I couldn't check that out.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

+ Reply to Thread

Similar Threads

  1. Some very usfull links for php & perl.
    By DefecTalisman in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 12-11-2008, 07:49 PM
  2. Internal Server Error FOR Perl script
    By radofeya in forum Free Hosting
    Replies: 0
    Last Post: 04-14-2008, 01:06 PM
  3. failed to install perl module curl::easy
    By rembrant in forum Free Hosting
    Replies: 1
    Last Post: 01-27-2008, 03:26 PM
  4. To all those using Perl and CGI
    By DefecTalisman in forum Free Hosting
    Replies: 0
    Last Post: 09-16-2007, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers