Web Hosting Talk







View Full Version : SSI and CGI.....eh


HostRat
07-05-2001, 08:08 PM
We have a cobalt RAQ 4 and it appears that you cannot run SSI CGI scripts.

Is there any way to overcome this?

Any infomation would be helpful!

honging
07-05-2001, 08:45 PM
You can run CGI/SSI... the problem probably is CGI Wrap. Do a search on these forums and you'll find out how to use it properly =)

(SH)Saeed
07-05-2001, 08:57 PM
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi .pl

#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml

HostRat, check your httpd.conf file for the lines I have pasted above. Don't forget to restart apache after you have changed httpd.conf.

diyoha
07-05-2001, 11:44 PM
hello,

is cgi wrap the default setting for the raq4?

if so will the above suggestion change that?

thanx

David

Chicken
07-06-2001, 01:06 AM
That doesn't disable cgi-wrap, though it is possible.

diyoha
07-06-2001, 01:08 AM
but would it now allow regular cgi calls to be make (without using the cgi-wrap)?

thanks

certify
07-06-2001, 09:53 AM
Originally posted by zolbian


HostRat, check your httpd.conf file for the lines I have pasted above. Don't forget to restart apache after you have changed httpd.conf.

I change the httpd.conf file and restart the server but when i tried to open my forum I get the 403 error message. :(

(SH)Saeed
07-06-2001, 10:53 AM
Originally posted by certify


I change the httpd.conf file and restart the server but when i tried to open my forum I get the 403 error message. :(

There is another thing you might want to look at that _might_ be causing this problem. Again in the httpd.conf file.. Look for ExecCGI..

<Directory "/usr/home/*/public_html">
AllowOverride All
Options Indexes MultiViews SymLinksIfOwnerMatch IncludesNoExec ExecCGI

Madman2020
07-06-2001, 11:03 AM
If you want to disable the cgi-wrapper, all you need to do is either in the vhost block or an .htaccess file simply put a directive for cgi-script instead of cgi-wrapper and make sure ExecCGI is on.

certify
07-11-2001, 01:39 AM
Originally posted by zolbian


There is another thing you might want to look at that _might_ be causing this problem. Again in the httpd.conf file.. Look for ExecCGI..



I am using RAQ3 and I can't seems to fing ExecCGI in httpd.conf file.... :confused:

(SH)Saeed
07-11-2001, 05:20 AM
Originally posted by certify
I am using RAQ3 and I can't seems to fing ExecCGI in httpd.conf file.... :confused:

Certify, try adding it to line starting with Options between the <Directory> tags. Make sure you add it to the one that has the path to your site dirs.

certify
07-11-2001, 05:31 AM
NameVirtualHost 209.217.55.217
<VirtualHost 209.217.55.217>
ServerName www.certifyexpress.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
ServerAlias certifyexpress.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^209.217.55.217(:80)?$
RewriteCond %{HTTP_HOST} !^www.certifyexpress.com(:80)?$
RewriteRule ^/(.*) http://www.certifyexpress.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
# AddHandler cgi-wrapper .cgi
# AddHandler cgi-wrapper .pl

Options ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>


The RED indicated the new lines that I have added but after reboot none of my .SHTML files can be parse??? .CGI files are still executable thou.

(SH)Saeed
07-11-2001, 06:20 AM
certify,

The ExecCGI line has to be added to <Directory> and not <VirtualHost>. I don't have my RaQ, so I can't look at it's httpd.conf file to tell you exactly where it should be. But look in your httpd.conf file for the <Directory /path/to/sitedirs>. It should already have an Options line, you just have to add ExecCGI to the end of that line.

certify
07-11-2001, 06:39 AM
I tired to post the entire httpd.conf file here but it is just too long for this board.

Click this url to view the httpd.conf file on my RAQ3
http://www.certifyexpress.com/httpd.txt

I can't find <Directory> that you mention. :(

(SH)Saeed
07-11-2001, 03:38 PM
Originally posted by certify
I tired to post the entire httpd.conf file here but it is just too long for this board.

Click this url to view the httpd.conf file on my RAQ3
http://www.certifyexpress.com/httpd.txt

I can't find <Directory> that you mention. :(

I wish I had my RaQ3, just cancelled the server a week ago ;( I've been using FreeBSD since then, so I don't remember exactly how the RaQ was setup. Hmm.. Try looking in srm.conf in the same directory. Let me know if you find it in there.

certify
07-12-2001, 07:25 AM
Nope it is not in srm.conf file either.