These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for PLease explain how cgi-bin works. on the new forum.
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
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.
--
Check out the forum guidelines!
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
</Directory>
(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
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 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?
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.
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.
Admin,
Send me the script and the installation instruction that came with it.