Hello, The issue of not being able to execute cgi from user dir is also caused due to suexec.
You can disable it by following below: # whereis suexec mv /usr/sbin/suexec /usr/sbin/suexec_disabled You can always enable it by renaming the file again. On Mon, Jul 20, 2015 at 7:41 PM, Tucker, Doug <tuck...@lyle.smu.edu> wrote: > 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 e...@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-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >