Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Need help with PERL/CGI on UNIX server plz :)

  • 23-08-1999 10:16pm
    #1
    Closed Accounts Posts: 200 ✭✭


    Ok, the muppet of the month awards are on hold until I can get this b1tch working...
    http://www.gibworld.com/mobius/cgi-bin/vote.cgi
    This script is supposed to display a table of results from my online voting system, but I get an 'internal service error' when I click 'subit my vote at once'.
    I could use some help...? smile.gif

    Get muppited at:
    http://www.gibworld.com/mobius




Comments

  • Closed Accounts Posts: 202 ✭✭Karla


    Umm, I think you're script is at this URL instead http://powercgi.gibworld.com/cgi-mobius/vote.cgi

    That's the one the Form is pointing at anyway, and the one you mentioned is a 404.

    Either way I can't read the source code to the CGI script, any chance you could post it here or else e-mail it to me, I might be able to help, if you've used CGI.pm that is.

    Karla


  • Closed Accounts Posts: 200 ✭✭mobius


    Nah I didn't get a 'file not found', it said there was a problem with the 'internal service' smile.gif
    And, yes, the script is ALSO located at the URL you mentioned, but you cannot access it directly with an FTP client, that's why I mentioned the other one. The admins require that all cgi scripts be called from the URL you mentioned.
    I mailed you the script anyway, it has lots of comments, so it shouldn't be too hard to work out. tongue.gif

    Thanks for the help btw smile.gif


    Get muppited at:
    http://www.gibworld.com/mobius




  • Closed Accounts Posts: 202 ✭✭Karla


    Well, I'm not an expert with cgi-lib.pl but I tried running it from the command line.
    This could be a mistake but take a look at the first line,
    It should start with a '#!/blah/blah'

    The one you sent is missing the '#!' and when I added it in it ran fine.
    You might want to look into a newer CGI that uses Perl 5's CGI.pm, it really is way easier.

    Anyway try that hopefully it'll work.

    Karla


  • Closed Accounts Posts: 200 ✭✭mobius


    I'm still getting errors!
    It is a pretty old script, written in '94 or something.
    Ah well, (sigh) time to go cgi-shopping again! smile.gif
    Thanks again!

    Get muppited at:
    http://www.gibworld.com/mobius




  • Closed Accounts Posts: 200 ✭✭mobius


    YEEAHH BABY!!
    While shopping for a new CGI, I came across a little piece of info about cgi scripts...
    I needed to set the file attributes to 775 or something, in other words, all that was wrong was the server didn't have permission to read, write or exec the script..
    (damn UNIX)
    Woohoo! It works!
    Now I hust have to update the layout of the results page.
    smile.gif))) ***WHOOP*** smile.gif))

    Get muppited at:
    http://www.gibworld.com/mobius




  • Advertisement
Advertisement