Solved

Apache refuses to execute CGI citing permission errors

Posted on 2009-05-12
2
1,148 Views
Last Modified: 2012-05-06
I am trying to get a CGI script to execute under Apache and while I have checked permissions and determined that Apache should be able to execute the script, it complains. I have pasted the following to demonstrate the problem.
[root@Smokeping htdocs]# ls -l
total 60
drwxr-xr-x  3   1003 1001 4096 Jul 24  2008 cropper
lrwxrwxrwx  1 root   root   13 May 16 10:20 index.cgi -> smokeping.cgi
drwxr-xr-x  4   1003 1001 4096 Jul 24  2008 resource
drwxr-xr-x  2   1003 1001 4096 Jul 24  2008 script
-rwxr-xr-x  1 apache 1001 2500 May 27 04:51 smokeping.cgi
-rwxr-xr-x  1 apache root   82 May 18 19:14 test.cgi
-rwxr-xr-x  1 apache 1001  663 Jul 24  2008 tr.cgi
=======================================
From the error log:
=======================================
[Wed May 27 09:12:48 2009] [error] [client 10.255.255.148] (13)Permission denied: exec of '/var/www/html/smokeping/index.cgi' failed
=======================================
Excerpts from the httpd.conf file:
=======================================
AddHandler cgi-script .cgi
 
ScriptAlias /cgi-bin/ "/usr/local/smokeping/htdocs/"
 
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/smokeping/htdocs">
    AllowOverride None
#    Options None
    Options +Indexes FollowSymLinks +ExecCGI
    Order allow,deny
    Allow from all
</Directory>
<Directory "/var/www/html/smokeping">
 Options +Indexes FollowSymLinks +ExecCGI
 AllowOverride AuthConfig FileInfo
 Order allow,deny
 Allow from all
</Directory>

Open in new window

0
Comment
Question by:newgentechnologies
[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
2 Comments
 
LVL 3

Expert Comment

by:osintsev
ID: 24367251
0
 

Accepted Solution

by:
newgentechnologies earned 0 total points
ID: 24368126
Correct.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internal wordpress pages 404 5 47
PHP Error Settings 12 87
wamp versus xampp 4 77
Let's Encrypt - Auto Renew Failure via Cron Job 1 64
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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