Forum Moderators: phranque

Message Too Old, No Replies

CGI-BIN, Best Practices and Webmin

         

kwixson

7:22 pm on Jul 10, 2005 (gmt 0)

10+ Year Member



I'm having a similar problem understanding how to configure a CGI-BIN according to best practices, like were discussed in [webmasterworld.com...]

I have set things up as was suggested. New users get a www folder in their home directory, with public_html, logs, and cgi-bin folders inside it. The public_html folder has a symbolic link from cgi-bin to ../cgi-bin.

Now, how do I get the cgi-bin configured to serve cgi scripts, and how do I get it so the symbolic link is actually followed? What permissions do I need to have set on which folders/files?

I am also using Webmin, so information about how to do what I need with Webmin would be especially appreciated.

kwixson

8:41 pm on Jul 10, 2005 (gmt 0)

10+ Year Member



By the way, my Virtual Host directives for the sample I'm working with is currently...

ServerName kwixson
DocumentRoot /home/kwixson/www/public_html
ErrorLog /home/kwixson/www/logs/kwixson-error.log
LogLevel emerg
TransferLog /home/kwixson/www/logs/kwixson-access.log
Options ExecCGI
ScriptAlias /cgi-bin/ /home/kwixson/www/cgi-bin/

And The problem I'm having at the moment is the error...

Forbidden
You don't have permission to access /cgi-bin/hello.cgi on this server.

Apache/1.3.33 Server at kwixson Port 80

jdMorgan

9:02 pm on Jul 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Options FollowSymLinks and Options SymLinksIfOwnerMatch

Also, check file permissions; the user will need to be able to read and execute the cgi.

Check the error log for more info. I'd suggest setting the log level to "warn" until you get this working.

That's about all I know about this... :(

Jim