Current time: 07-13-2014, 12:12 AM Hello There, Guest! (LoginRegister)

Post Reply 
Cgi strangeness
05-02-2001, 04:43 PM
Post: #1
Cgi strangeness
Hello ^_^

I have two strange things that have happened to to me while trying to install cgi files:

1) I tried installing one message board, but it could not find my cgi file. The strange thing was that the cgi file's location was the same as the file was called for in the url requested.

2) With that discouragement, I tried installing a different board. But this time, when I tried view the cgi file, a dialogue box popped up, asking me if I wanted to save the file.

500 errors, I can deal with, but this is very odd. Can anyone tell me what's wrong? I have a sweet dreams account (but it may just be me...since I've been having strange configuration problems).

Thanx ^_^

Jackie (aka Jackstorm)
Visit this user's website Find all posts by this user
Quote this message in a reply
05-02-2001, 08:26 PM
Post: #2
Cgi strangeness
Not sure if this will help, but what you describe in no. 2 is similar to something that happened to me and PHP.

When I was trying to configure my own web server, I was able to view .php and .phtml files, but .shtml files always created a prompt to download the file. I combed the httpd.conf file of Apache to figure out what I can do.

I came across a runtime directive called XBitHack, which handles whether files are perceived by the web server as executable or not.

In short, setting the value of XBitHack is the same as changing all the permissions on your files to 755, allowing .shtml or .html or .shtm files to execute scripts called by server-side includes.

You should tell the system admins about what happens and ask them if it's a configuration problem with the server.

---
Musicwhore.org
http://www.musicwhore.org/
sticky listening. yum.
Find all posts by this user
Quote this message in a reply
05-02-2001, 09:32 PM
Post: #3
Cgi strangeness
Quote:1) I tried installing one message board, but it could not find my cgi file.
The strange thing was that the cgi file's location was the same as the
file was called for in the url requested.

Check permissions. If your CGI isn't chmod to 755, Apache may not be
able to see it.

Quote:2) With that discouragement, I tried installing a different board. But this
time, when I tried view the cgi file, a dialogue box popped up, asking me
if I wanted to save the file.

When sending a page, the browser gets told what kind of MIME type the
file is. Dialog boxes pop up when the MIME type is unrecognized.

Apache has a file that lists MIME types that are associated with any given
extension. The pl and cgi extensions are not included in that file, because
normally pl and cgi files are *executed* rather than *served*.

Sometimes, people will offer ZIP files for download. The user ends up getting
WinZip or some similar program opening up the file for the user, when the user
wanted to simply save the file right now, and look at it later. By adding a line
to .htaccess, you can assign a MIME type to any given filename extension.
AddType application/octet-stream zip
would tell the browser that the zip file is a type that the browser doesn't
recognize, and thus the user would be prompted to save it to disk.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: