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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:58:23+00:00 2026-05-15T10:58:23+00:00

please help! I’m really going nuts with this problem! I have a CGI perl

  • 0

please help! I’m really going nuts with this problem!

I have a CGI perl script and it always fails at the following line when executed from the Apache HTTP server:

tie %db, 'MLDBM', "$data_path/$db_name.db", O_RDONLY, 0640 or die $!

and the error is Permission denied:

Software error:

Permission denied at /var/www/cgi-bin/rich/pages/display line 381.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

But when executed from the command line, it works without any problem.

I have ensured that the directories and the file to tie have the correct permissions.

So what else have I missed? What configurations in the Apache’s httpd.conf I could be getting wrong? Admittedly, I didn’t have any previous experience with the Apache HTTP server, so this is pretty much my first time playing around with it. However, I have read the manuals more than once to look for things I could be wrong at, but I didn’t notice anything. But I could be wrong of course.

Thanks!!

  • 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-15T10:58:24+00:00Added an answer on May 15, 2026 at 10:58 am

    Have you verified that $data_path and $db_name contain what you think they do?

    Is $data_path an absolute path which is not reliant on the active user’s identity or home directory?

    What does ls -l $data_path/$db_name.db show for the file’s ownership and permissions?

    I’ve never run across (or heard of) anything in apache that would prevent a CGI process from having permission to open files, so I highly doubt that it’s an apache config issue. Most likely it’s either looking for the wrong file or the file’s permissions are incorrect for the user that apache is running the CGI process as.

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

Sidebar

Related Questions

Please help me decode the following. I have a problem in the network, unable
Please help to prepare batch script on DOS. This script should run in following
Please help me on this problem. I have 2 identical tables, one is timetable
Please help me to improve the following script: http://jsfiddle.net/n9BkM/8/ I need the following fucntionality:
Please Help me to do this first i have this div <div class=loader alt=stat.php>
Please help me understand the meaning of this code. I have seen this kind
Please help me with this issue in my script. At the point of the
Please help me How I can resolved this problem. java.lang.IllegalArgumentException: already added: Ltwitter4j/Annotation; [2012-05-14
Please help me on this, its really irritating may be because i am doing
Please help me to understand below code. This is the script for drag and

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.