PLease explain how cgi-bin works.

I have a site that uses cgi files, where do they go, do I create a cgi-bin directory in public_html and put them in there, or do I put them in /home/cgi-bin/

What do I have to do to the site to turn on cgi?

Thank you for your time.

Hey Adam,

There should be a ~/cgi-bin (that’s /home/domain/cgi-bin) directory that is preconfigured for executable files, unless it has been disabled in the templates.

Note that PHP stuff is different, and can reside in public_html–though there will be some changes in how php files are handled in upcoming versions of Virtualmin to accomodate multiple versions (compatibility between PHP versions is not historically very good, so many scripts only run on a specific version). But there will be some documentation about how to deal with that once the changes are in place–it should be anything too complicated, as we’ll be using reasonable defaults when possible.

So I put all .cgi files in the /home/domain/cgi-bin/ directory to get them to work instead of display?

in my domains error log I get

Sat Dec 31 15:42:15 2005]] [[error]] [[client]] client denied by server configuration: /home/

THis is suse 10.0, what do I have to do to fix this please?


Please post what you are trying to do and what script you are running. From the log it looks like the script is trying to install something.

The script may have some settings that are not allowed by the server config. I had the same problem when I tried to install drupal and the .htaccess file that comes with drupal was calling for some options that were not allowed by the server configuration. After I corrected the server settings all went well.

Im trying to install gossamer threads links 3.0.4 sql version, it’s located at

Theres an install.cgi script and a something.dat file, I can send you the install.cgi script via email to you if you think it will help, but Im not allowed to distribute the package.


Send me the script and the installation instruction that came with it.

Here is what is in my templates files:

ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog ${HOME}/logs/error_log
CustomLog ${HOME}/logs/access_log common
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
<Director y ${HOME}/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
(i put the space in Directory to get around the security
I put the .cgi files in the home/domain/cgi-bin and when i try to bring up the admin.cgi file I get

Access forbidden!

You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403