Welcome, Guest
Please Login or Register.
Lost Password?
Re: PLease explain how cgi-bin works. (1 viewing)
Post Reply

TOPIC: Re: PLease explain how cgi-bin works.

#1015
AdamHolt (User)
Posts: 94
graphgraph
PLease explain how cgi-bin works. 2005/12/30 17:37  
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.
Adam
  The administrator has disabled public write access.
#1032
Joe (Admin)
Posts: 4117
graph
Re: PLease explain how cgi-bin works. 2005/12/31 14:00  
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.
  The administrator has disabled public write access.
#1036
AdamHolt (User)
Posts: 94
graphgraph
Re: PLease explain how cgi-bin works. 2005/12/31 15:48  
So I put all .cgi files in the /home/domain/cgi-bin/ directory to get them to work instead of display?
  The administrator has disabled public write access.
#1035
AdamHolt (User)
Posts: 94
graphgraph
Re: PLease explain how cgi-bin works. 2005/12/31 17:04  
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/

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

  The administrator has disabled public write access.
#1039
AdamHolt (User)
Posts: 94
graphgraph
Re: PLease explain how cgi-bin works. 2005/12/31 17:12  
in my domains error log I get

Sat Dec 31 15:42:15 2005]] [[error]] [[client 192.168.1.1]] client denied by server configuration: /home/mydomain.com/cgi-bin/install.cgi

THis is suse 10.0, what do I have to do to fix this please?
  The administrator has disabled public write access.
#1041
KevinRauth (User)
Posts: 47
graphgraph
Re: PLease explain how cgi-bin works. 2005/12/31 20:53  
Adam,

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.
  The administrator has disabled public write access.
#1042
AdamHolt (User)
Posts: 94
graphgraph
Re: Re: PLease explain how cgi-bin works. 2005/12/31 23:44  
Im trying to install gossamer threads links 3.0.4 sql version, it's located at gossamer-threads.com

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.

  The administrator has disabled public write access.
#1047
KevinRauth (User)
Posts: 47
graphgraph
Re: PLease explain how cgi-bin works. 2006/01/01 09:57  
Admin,

Send me the script and the installation instruction that came with it.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.