Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6710961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:04:59+00:00 2026-05-26T08:04:59+00:00

I have two perl scripts; one acts like the client (and queries); the other

  • 0

I have two perl scripts; one acts like the client (and queries); the other acts like the server and returns information. On an Apache server (not my own) they work perfectly.

However, on my ubuntu/Linux_box with Apache2 (that I set up) they do not; I get a 404 not found error. The cgi-bin directory is located at usr/lib/cgi-bin. What specific files/settings etc have to be changed/altered/etc. And, what specific changes/alterations/etc. need to be made?

Edit:
I changed the httpd.conf and tried both of the following (but neither worked):

ScriptAlias  /diag/ /usr/lib/cgi-bin
ScriptAlias  /diag/ /usr/lib/cgi-bin/

I am using a perl script as the client, and it did not work. For illustration purposes I attempted to locate the file with the browser shown in the 2nd pic.

linux

ms

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:05:00+00:00Added an answer on May 26, 2026 at 8:05 am

    If they are receiving 404, it means that the file does not even exist in the correct location. In the httpd.conf look for the “ScriptAlias” directive that has an entry for cgi-bin, should be something like

    ScriptAlias /cgi-bin/ /some_folder/cgi-bin

    Once you know the correct folder, the 404 error should go away.

    Two other points –
    1. For cgi files, ensure that the execute bit is set.
    2. Verify that the location of perl matches the one in the perl script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Perl scripts that are supposed to do the following job: Server
I have two Perl files: action.pl and the other is test.pl action.pl has a
I have an array in Perl: my @my_array = (one,two,three,two,three); How do I remove
I'm relatively new to Perl, writing some XML parsing scripts. I have done two
I need to run two perl scripts from one in parallel. How can I
I want to parse a large XML file and I have two options: Perl
I have two folders php and perl . They contain index.php and index.pl ,
I have the opportunity to take a two day class on Perl 6 with
I have two applications written in Java that communicate with each other using XML
I have two processes: a server that should be run in background, but starts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.