Apache 1.3.9: CGI in user directories

Apache 1.3.9: CGI in user directories

Post by Robert Benit » Tue, 09 Nov 1999 04:00:00



I've recently upgraded from Apache 1.2.6 to 1.3.9 on a Compaq Tru64
UNIX system.

I took most defaults for configure. I modified the httpd.conf file to
allow users to run .cgi scripts from their public_html directories. And
set the httpd.conf file much the same as I had in 1.2.6.

From my reading of the documentation text in the httpd.conf file, if I
want users to be able to execute CGI from their directories (like
public_html) I uncomment the following line:

AddHandler cgi-script .cgi

Which I did. When that didn't work I included the following Directory
directive set:

<Directory /usr/users/*/public_html/*>
    AllowOverride All
    Options All MultiViews
</Directory>

Still I see things like:

You don't have permission to access
/~uuu/classes/F99/363/home05/nextanimal.cgi on this server.

But the file does exist:

-rwsr-xr-x   1 uuu    users   786432 Sep 29 14:58 \
        /usr/users/uuu/public_html/classes/F99/363/home05/nextanimal.cgi

The above file at the end of a symbolic link but I thought "Options
All" gave me both FollowSymLinks and ExecCGI.

I've even included the directive set:

<Directory /usr/users/uuu/public_html/classes/F99/363/home05>
    AllowOverride All
    Options Indexes Includes FollowSymLinks ExecCGI MultiViews
</Directory>

Still it won't allow me to exec a .cgi.

I feel like I'm missing something simple here, or at least I hope it
is simple.

Can someone tell me where I've gone wrong?

Thanks!

-- Bob Benites

 
 
 

Apache 1.3.9: CGI in user directories

Post by sai.. » Wed, 10 Nov 1999 04:00:00




Quote:> I've recently upgraded from Apache 1.2.6 to 1.3.9 on a Compaq Tru64
> UNIX system.

> I took most defaults for configure. I modified the httpd.conf file to
> allow users to run .cgi scripts from their public_html directories.
And
> set the httpd.conf file much the same as I had in 1.2.6.

> From my reading of the documentation text in the httpd.conf file, if I
> want users to be able to execute CGI from their directories (like
> public_html) I uncomment the following line:

> AddHandler cgi-script .cgi

> Which I did. When that didn't work I included the following Directory
> directive set:

> <Directory /usr/users/*/public_html/*>
>     AllowOverride All
>     Options All MultiViews
> </Directory>

> Still I see things like:

> You don't have permission to access
> /~uuu/classes/F99/363/home05/nextanimal.cgi on this server.

> But the file does exist:

> -rwsr-xr-x   1 uuu    users   786432 Sep 29 14:58 \
>    /usr/users/uuu/public_html/classes/F99/363/home05/nextanimal.cgi

> The above file at the end of a symbolic link but I thought "Options
> All" gave me both FollowSymLinks and ExecCGI.

> I've even included the directive set:

> <Directory /usr/users/uuu/public_html/classes/F99/363/home05>
>     AllowOverride All
>     Options Indexes Includes FollowSymLinks ExecCGI MultiViews
> </Directory>

> Still it won't allow me to exec a .cgi.

> I feel like I'm missing something simple here, or at least I hope it
> is simple.

> Can someone tell me where I've gone wrong?

> Thanks!

> -- Bob Benites

Try
SetHandler cgi-script

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Apache 1.3.9: CGI in user directories

Post by Dave Salisbur » Wed, 10 Nov 1999 04:00:00


It works for me with

<Location ~ /~usersname >
Options ExecCGI
</Location>

Dave


> I've recently upgraded from Apache 1.2.6 to 1.3.9 on a Compaq Tru64
> UNIX system.

> I took most defaults for configure. I modified the httpd.conf file to
> allow users to run .cgi scripts from their public_html directories. And
> set the httpd.conf file much the same as I had in 1.2.6.

> From my reading of the documentation text in the httpd.conf file, if I
> want users to be able to execute CGI from their directories (like
> public_html) I uncomment the following line:

> AddHandler cgi-script .cgi

> Which I did. When that didn't work I included the following Directory
> directive set:

> <Directory /usr/users/*/public_html/*>
>     AllowOverride All
>     Options All MultiViews
> </Directory>

> Still I see things like:

> You don't have permission to access
> /~uuu/classes/F99/363/home05/nextanimal.cgi on this server.

> But the file does exist:

> -rwsr-xr-x   1 uuu    users   786432 Sep 29 14:58 \
>         /usr/users/uuu/public_html/classes/F99/363/home05/nextanimal.cgi

> The above file at the end of a symbolic link but I thought "Options
> All" gave me both FollowSymLinks and ExecCGI.

> I've even included the directive set:

> <Directory /usr/users/uuu/public_html/classes/F99/363/home05>
>     AllowOverride All
>     Options Indexes Includes FollowSymLinks ExecCGI MultiViews
> </Directory>

> Still it won't allow me to exec a .cgi.

> I feel like I'm missing something simple here, or at least I hope it
> is simple.

> Can someone tell me where I've gone wrong?

> Thanks!

> -- Bob Benites

 
 
 

1. Enabling cgi-bin directories for each user in Apache

Hello everyone,

I am sure this question has been asked b4, but I checked the FAQ and I didn't
seem to find the answer.

I am tring to enable individual cgi-bin directories for each user on my Linux system using
the Apache Web server.

I want to be able to enable the "~user/public_html/cgi-bin" directories (or similar) for all
users, so that _ALL_ the files (not just the files with perticular extention(s) ) in that
directories will be interpreted as cgi-bin files.

Please let me know if you have managed to do accomplish this.  Newsgroup responses are cool but
an E-mail responses will be really appreciated.  I'll post the answer once I get it.

Thanks for all your help.
Sincerely,
Jess

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

"If you were going to die soon and had only one phone call
to make, who would you call and what would you say?  And why
are you waiting?"
-Stephen Levine

"Whether you think you can or think you can't, your right."
-Henry Ford

"Failure?  I never encountered it.  All I ever met were
temporary setbacks."
-Dottie Walters

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2. Installing Redhat from a HardDrive

3. user cgi directories, Red Hat 7.3, Apache 1.3.x

4. Problem upgrading library

5. Enabling cgi-bin directories for each user in Apache

6. possible hack...

7. Apache 1.2b10 - User cgi-bin directories

8. TEST

9. apache web server cgi-bin directories in user dirs, but how?

10. Aliasing cgi-bin directory to CGI directory

11. 403 Forbidden - when i try to go to a user directory (~user) in Apache

12. Creating user cgi-bin directories

13. Q: user's own cgi-bin directory?