Apache problem

How can I allow any user to have cgi-scripts in their public_html dir?

Who is Participating?
alfarrisConnect With a Mentor Commented:
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

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

This will apply to any location accessed with a url that begins with '~' such as

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.
wqclatreAuthor Commented:
Edited text of question
wqclatreAuthor Commented:
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:

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

wqclatreAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.