Solved

Apache CGI permission denied errno = (13)

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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