Solved

Apache CGI permission denied errno = (13)

Posted on 1998-06-05
3
1,091 Views
Last Modified: 2013-12-25
Just upgraded the apache web server to:

Server version Apache/1.2.5 Ben-SSL/1.13 FrontPage/3.0.3.

Scripts that work fine will the old apache server now
fail with the error:

exec of /home/aande/htdocs/cgi.bin/formp.cgi failed, reason: Permission denied (errno = 13)

This only seems to happen with users running their
cGI scripts, they work fine if run out of a non user
directory as root.  The *.conf files between the two
versions are the same except for the SSL and Frontpage
info.  We are also trying to use suexec.  

Any ideas what may be causing this?

Regards,

Robert hardesty
hardesty@hardlink.net
0
Comment
Question by:rhardesty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1829416
Are you sure the new installed version runs with enough privileges to exec your scripts?

-julio
0
 
LVL 1

Accepted Solution

by:
RoboBob earned 100 total points
ID: 1829417
Permission denied means that the user the web server is running as doesnt have the access rights to run the script, make sure that the old and new version are both running as the same user (if you ran the old version as root and the new version as www, then the scripts will all need their permissions fixed so that they can run as www, or you will need to run the new server as root).  If NONE of the scripts work, it could be that the server has access to the file, but not to one of the directories above it, try su-ing to the user the web server is running as, and running the script from the command line, if you get permission denied, then try changing to each directory in turn (i.e. cd to /home and if that works then cd to /home/aande) until you figure out which directory has the wrong permissions.
0
 
LVL 7

Expert Comment

by:jconde
ID: 1829418
Hi, you need to check you the access.conf file for permission privileges!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question