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 6787495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:22:23+00:00 2026-05-26T17:22:23+00:00

I have experience with setting up multiple Perl program with mac before, but come

  • 0

I have experience with setting up multiple Perl program with mac before, but come to a strange situation today.

I delete one of my existing Perl folder and download it from GitHub, when I try to run again, it shows this error: [an error occurred while processing this directive].

So, what I do to debug is:

1) I create test.shtml (some problem displaying the arrow sign in here)

#exec cgi="/Users/lion/htdocs/app/cgi-bin/test.pl"-->

2) I create test.pl

#!/usr/bin/perl
print "content-type: text/html \n\n";
print "test";

3) I create a new htaccess

AddType text/html .shtml
AddHandler server-parsed .shtml

4) I set the test.pl permission to 777

5) I tested with http://app.local/test.shtml
-> come out error [an error occurred while processing this directive].

6) If I manually run from console, it is working fine.

Here’s my apache config as well.

<VirtualHost *:80>
    DocumentRoot "/Users/lion/htdocs/app"
    ServerName app.local
    ScriptAlias /cgi-bin/ "/Users/lion/htdocs/app/cgi-bin/" 
</VirtualHost>

My apache error log show this:

[Wed Nov 09 16:45:25 2011] [error] [client 127.0.0.1] invalid CGI ref "/Users/lion/htdocs/app/cgi-bin/test.pl" in /Users/lion/htdocs/app/test.shtml

Not sure what I missed out, my other Perl program is running just fine. Run out of ideas what cause the problem.

  • 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-26T17:22:24+00:00Added an answer on May 26, 2026 at 5:22 pm

    exec cgi expects a URL-path, not a file system path as an argument.

    Try

    #exec cgi="/cgi-bin/test.pl"
    

    or just

    #exec cgi="test.pl"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good tutorial or does anyone have experience with setting this up
Anyone have experience with this plugin? I have it installed but I have no
I have some experience setting up Google CSEs. I have a request to set
Possible Duplicate: PHP page redirect I have 0 experience with PHP. I was setting
Anyone have experience with algorithmic trading (like stocks)? Any good services to use to
Anyone have experience with adding a ReSharper profile to the VS2008 solution and share
I have experience in PHP, JSP/servelts and classic ASP, and I am trying to
I have experience with OCaml. You had to write a stub for every function
anyone have experience doing this? when i say imaginary i mean the square root
Does anyone have experience using the URL Rewrite Module (see here )? Can it

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.