Quote:
Originally Posted by tadpole
I tried making a directory called cgi-bin, and uploaded the script to that, but it didn't work.
|
No, the CGI-BIN is not like a normal folder, you cannot make it yourself, it is done at the server end.
Quote:
Originally Posted by tadpole
The script mentioned references "/cgi-bin", which is incorrect. Your current directory is named as "/cgi".
|
What they are saying is that for some reason they have decided to ignore the convention of calling the folder where scripts are stored as "CGI-BIN" and instead called it cgi. In the SSI call change "cgi-bin/readblog.cgi" to "cgi/readblog.cgi":
Code:
<html><head><title>Test</title>
</head>
<body>
<!--#include virtual="cgi/readblog.cgi"-->
</body></html>
If that does not work try the following (but by "work" I mean "do something", if you get an error message, assume this part has worked and let me know what the error message says.):
Code:
<html><head><title>Test</title>
</head>
<body>
<!--#include virtual="/cgi/readblog.cgi"-->
</body></html>
(the same thing but with a slash before cgi.)
Note that practically every script you get will assume your host will be calling the folder where scripts are stored as "CGI-BIN" so you will always have to remember to change the call from "CGI-BIN" to "cgi"
Quote:
Originally Posted by tadpole
So it looks like I will need a slightly different script.
|
No the script should still work, all you need to change is the SSI call, in the way I mentioned above.
Quote:
Originally Posted by tadpole
Server-side scripts and executables can be uploaded to any directory on your site and are not restricted to run only in the cgi directory.
|
Are you trying to run test.shtml from the cgi folder? If so only readblog.cgi should be in the cgi folder - test.shtml should be in root (or whatever your hosting company called the other folder).
Quote:
Originally Posted by tadpole
I do show both SSI and CGI are enabled.
|
I'm still not convinced of this because if SSI were enabled you should at the very least get an error message, and the line with the include statement should have been deleted from the source code. However, if you have put test.shtml in the cgi folder, perhaps SSI is only active in the root folder.
If you are running test.shtml in the root directory (or whatever your host calls the other folder) and you are still not getting either the blog appearing or an error message, then let me know and I'll tell you what to say to your host to get things fixed at their end.