Solved

Apache CGI permission denied errno = (13)

Posted on 1998-06-05
3
1,081 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple JavaScript form question 4 66
How to count json data 2 67
Installing Git and chefdk via bat script 8 62
Control Number of Log Files -Perl 7 56
Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now