Apache Error: Options ExecCGI is off in this directory

By: Published: Aug 25th, 2012 Category: Apache

Problem:

Recently after recompiling PHP on a Linux server; Bugzilla installed on same server for bug management started throwing 403 Forbidden: Access is forbidden to the requested page Error.

12 300x146 Apache Error: Options ExecCGI is off in this directory

Apache error log was showing following Error

[Tue Sep 20 11:32:33 2011] [error] [client xx.xx.xx.135] Options ExecCGI is off in this directory: /usr/local/apache/htdocs/bugzilla/index.cgi

 

Cause:

This happens when CGI programs is restricted to run from arbitrary directories.

 

Solution:

This problem can be fixed by specifying ExecCGI in the Options directive.

1) Open apache configuration file located at /etc/httpd/conf/httpd.conf

2) Now paste following Globally (Not under the VirtualHost of the domain)

<Directory “/usr/local/apache/htdocs/bugzilla/”>
Options +ExecCGI
</Directory>

NOTE: Make sure to change the Directory Path i.e. /usr/local/apache/htdocs/bugzilla/

3) Save and exit the file.

4) Restart httpd server and try to access the link now.

 Apache Error: Options ExecCGI is off in this directory

About

Milind Koyande is the Senior Research Engineer and his job is to work with new technologies, specially Cloud Computing / Virtualization Technology. His past projects include Government Sector initiatives, Backup and Disaster Recovery Solutions.

Tags: , ,

One Response to “Apache Error: Options ExecCGI is off in this directory”


  1. Apache Error: Options ExecCGI is off in this directory « .:][ Gr8 Admin Team ][:.
    on Sep 28th, 2011
    @ 10:33 am

    [...] Steps to fix the error Options ExecCGI is off in this directory in Apache Web Server. Amplify’d from eitwebguru.com [...]

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.