Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on Perl script 404 error in the VPS & Dedicated forum
Is there a setting I need to modify on my VPS to get a .pl script within cgi-bin working? The file was uploaded in ASCII ...

  1. #1
    JPC Member
    Join Date
    Apr 2006
    Posts
    26

    Perl script 404 error

    Is there a setting I need to modify on my VPS to get a .pl script within cgi-bin working?

    The file was uploaded in ASCII and chmod to 755 but still receiving 404 errors.

    I'm wondering if I might have disabled cgi-bin access elsewhere although I activated it in the client's package.

  2. #2
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    You didnt turn cgi-bin access off otherwise you wouldnt get a 404 error, but just the directory listing of your script. (it wouldnt execute) as far as i know. So there must be something wrong in your script. Check your apache error log for more information.

    Kind regards,
    Patrick

  3. #3
    JPC Member
    Join Date
    Apr 2006
    Posts
    26
    The script is functioning on the client's current site with another host, but doesn't function when moved to their site hosted with me. I've verified that all permissions are identical, etc. I've just moved another working perl script over and am getting the same results (404 error). I think the problem has to lie within my VPS settings or some other configuration option.

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Are you sure it is a 404? That would imply that the server can't find the file. If it finds the file, but something else is wrong, you should be getting a Script Error (500).

    Try moving the script out of cgi-bin to see what happens. Apache may be configured to ignore cgi-bin directories or soemthing like that. Are tehre any other scripts in cgi-bin that do work?

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  5. #5
    JPC Member
    Join Date
    Apr 2006
    Posts
    26
    Thank You!!! I moved it out of cgi-bin and it immediately worked.

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I'm not an Apache expert by any means, but I'd venture a guess that you need to set up a ScriptAlias directive for the site's <VirtualHost> in Apache's httpd.conf. <Said like he knows what he's talking about >
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •