Solved

Apache problem

Posted on 1998-11-13
5
218 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
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 600 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS RDS 3 67
Site-to-Site VPN OpenSWAN in AWS VPC to a Sonicwall 5 68
Sendmail STARTTLS error 37 83
mcrypt_create_iv() is deprecated 4 74
The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

911 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

24 Experts available now in Live!

Get 1:1 Help Now