You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Tucker, Doug" <tu...@lyle.smu.edu> on 2015/07/17 23:43:37 UTC

Cannot get ExecCGI to work with userdir apache 2.4.6

I'm at my wits end.  This same configuration works fine on our old 
apache 2.2.  I have read through the documentation for 2.4 and searched 
far and wide but cannot seem to solve this.

I'm running out of the box apache that came with centos 7.

selinux is disabled

Main virtual host setting in the main httpd.conf is:

<VirtualHost 129.119.119.207:80>
ServerAdmin enoc@lyle.smu.edu
     DocumentRoot "/var/www/html"
     ServerName neodev.seas.smu.edu
     DirectoryIndex index.php index.shtml index.html index.htm
     <Directory "/var/www/html">
         Options Includes FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
     ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
     <Directory "/var/www/cgi-bin">
         AllowOverride None
         Options ExecCGI
         Require all granted
     </Directory>
     ErrorLog logs/neodev-seas-smu-edu-error_log
     CustomLog logs/neodev-seas-smu-edu-access_log combined
</VirtualHost>


My userdir.conf looks like this:

<IfModule mod_userdir.c>
     #
     # UserDir is disabled by default since it can confirm the presence
     # of a username on the system (depending on home directory
     # permissions).
     #
     UserDir disabled root

     #
     # To enable requests to /~user/ to serve the user's public_html
     # directory, remove the "UserDir disabled" line above, and uncomment
     # the following line instead:
     #
     UserDir public_html
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/*/public_html/cgi-bin">
     Options Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
     AllowOverride None
     Require all granted
</Directory>

Scripts placed in /var/www/cgi-bin work, scripts placed in an user 
directory/cgi-bin do not.  The apache logs says this:

Options ExecCGI is off in this directory: 
/users4/enoc/tuckerd/public_html/cgi-bin/doug.py

The directory is 755.

I don't know how more to enable with than with the ExecCGI directive in 
Options.  I did try putting the + before each directive but the result 
was the same.  Can anyone please shed some light on what I'm missing? 
Again this exact same configuration (with the exception of the Require 
all granted being the old style Allow,deny stuff) works just fine on our 
apache 2.2.

-- 
Sincerely,

Doug Tucker

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Cannot get ExecCGI to work with userdir apache 2.4.6

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Tucker, Doug [mailto:tuckerd@lyle.smu.edu] 
> Subject: Cannot get ExecCGI to work with userdir apache 2.4.6

> I'm at my wits end.

Apparently so, since you picked the wrong mailing list.  This one is for Apache Tomcat, not Apache httpd, which is what you appear to be concerned with.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org