Preserved Topic: Displaying documents in cgi-bin (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 07-02-2001 16:20
I usually run cgi scripts thru a host but I just installed Apache on Windows. Thx to WarMage I finally found a link for ActivePerl which runs cgi scripts on Windows. I tried running an executable script which extracts data from a database and uses a template to display requested info into a html document. It works fine, only problem is html documents and images in the cgi-bin (which arent executable) cant be displayed and I get the following 2 errors in error.log (PS theres AddHandler cgi-script .pl & .cgi lines in srm.conf so as to associate .pl and .cgi with perl) |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-02-2001 18:46
Dunno about you, but we never put images and stuff in /cgi-bin/. We always put them in the /htdocs/images/<script_name>/ folder and make the script point to them. No CHMOD needed. Then, just the script itself is in /cgi-bin/. In our case, we usually do something like /cgi-bin/<script_name>/. This makes for a cleaner structure all around, and mirrors the /images/ structure. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-02-2001 20:29
Apache, by default, executes all files that are stored inside /cgi-bin/, so it means that you can't have images and other files there if they need to be displayed (if you store them there, they cen be read only by cgi scripts). So, simply move those image filese somwhere else (like Pugzly said above). |
Nervous Wreck (II) Inmate From: |
posted 07-03-2001 04:13
Thanks y'all. I guess am used to web hosts where you can put filez anywhere in the cgi-bin. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-03-2001 11:23
I cannot tell you if W2K would run faster than WinME on the same computer, because W2K is more demanding than old Win9x series. I can only tell you that it will be much more stable than WinME (it won't crash). |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-03-2001 15:45
Not to mention, can you even RUN server software on ME? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-03-2001 16:23 |