?
Solved

Apache problem

Posted on 1998-11-13
5
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Author Comment

by:wqclatre
ID: 1631634
Edited text of question
0
 
LVL 2

Expert Comment

by:harrys
ID: 1631635
0
 
LVL 2

Author Comment

by:wqclatre
ID: 1631636
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 2400 total points
ID: 1631637
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
ID: 1631638
Thanks!!!!!!!!!!!!!!!!!!
0

Featured Post

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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