Solved

Apache problem

Posted on 1998-11-13
5
217 Views
Last Modified: 2013-12-15
How can I allow any user to have cgi-scripts in their public_html dir?

0
Comment
Question by:wqclatre
  • 3
5 Comments
 
LVL 2

Author Comment

by:wqclatre
Comment Utility
Edited text of question
0
 
LVL 2

Expert Comment

by:harrys
Comment Utility
0
 
LVL 2

Author Comment

by:wqclatre
Comment Utility
But I have AddHandler cgi-script .cgi in my /etc/httpd/conf/srm.conf

I have done chmod 755 ~/public_html/test.cgi

And I still get:
 Forbidden

You don't have permission to access /~user/finger.cgi on this server

0
 
LVL 1

Accepted Solution

by:
alfarris earned 600 total points
Comment Utility
In addition to setting the AddHandler in srm.conf, you've also got to set up permissions
to execute CGI scripts for the directory hierarchy that contains your user account directories in access.conf. If all of your user directories are in /home try:

<Directory /home>
Options ExecCGI
</Directory>

Chances are if you have a recent version of apache there is a <Directory /home> directive
already in access.conf.

Another thing you can do is use the location directive try:

<Location /~*>
Options ExecCGI
</Location>

This will apply to any location accessed with a url that begins with '~' such as
http://www.mysite.com/~user

I haven't actually tried either of these, but they should work in combination with the modification to srm.conf mentioned above.

don't forget to restart your webserver after you make the changes.
0
 
LVL 2

Author Comment

by:wqclatre
Comment Utility
Thanks!!!!!!!!!!!!!!!!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now