View Full Version : detailed error logs
gwlubin
04-17-1999, 02:36 PM
do we have detailed error logs that tell you exactly what is wrong with a script?
g/
Dean B
04-17-1999, 04:05 PM
Graham,
I mailed you a while back about your guestbook. You never replied so I assumed you sorted it out.
Error logs can be found in your logs_cgi directory.
------------------
Regards, Dean.
**DMCity Web Board**
www.dmcity.com/cgi-bin/ubb/Ultimate.cgi (http://www.dmcity.com/cgi-bin/ubb/Ultimate.cgi)
gwlubin
04-17-1999, 04:14 PM
Dear Dean,
This is for something else I am trying to install the Gossamer Threads Search Engine http://www.gossamer-threads.com . I keep getting a 500 and don't know why.
Graham
hearts
04-17-1999, 05:13 PM
That makes two of us on the emails Dean.
Usually a 500 means you have your path wrong. Double check your paths in your scripts.
-----------------
hearts
-----
gwlubin
04-17-1999, 06:46 PM
guys,
i wouldn't want to get a reputation for not answering emails, now would i?
why is it we can't run html file from the cgi-bin.it makes things very awkward.
g/
[This message has been edited by gwlubin (edited 04-17-99).]
Terra
04-17-1999, 07:05 PM
why is it we can't run html file from the cgi-bin.it makes things very awkward
This is by design of the ScriptAlias Apache directive for which cgi-bin is mapped to...
I assume you want to do somthing like:
http://www.acme.com/cgi-bin/index.html
That will not work as expected, since index.html is not an executable script...
Why???
What would stop someone from accessing:
http://www.acme.com/cgi-bin/secret_passwords.txt
ScriptAlias will stop this dead in it's tracks, since 'secret_passwords.txt' is also not an executable script...
ScriptAlias also incurs very little overhead in relation to calling/figuring out you are trying to run a CGI script - it now becomes the assumption since this directive is being used...
PowerUser Mode: If you must be able to have this functionality, you can override it's behavior (shooting yourself in the foot) - but you will have to dig through all the Apache documentation to figure out how... (I don't know right off the top of my head, but I know that it can be done)
***If you figure out how, please do NOT post it to these forums, as it will skyrocket the Apache resource consumption with the more complex methods for ScriptAlias overriding...
--
Terra
--I can hand you the gun, but won't always show you how to use it--
FutureQuest
[This message has been edited by ccTech (edited 04-17-99).]
Terra
04-17-1999, 07:08 PM
Error logs can be found in your logs_cgi directory.
In case you missed Dean's post...
**I usually interpolate errors from both 'logs_web/error' and 'logs_cgi/script' as not everything is always logged to the 'logs_cgi' directory (usually compile time errors)...
--
Terra
mellinger
04-17-1999, 07:24 PM
O.K. I have a question. What file endings can't you have in the cgi-bin? Can you just have .cgi and .pl or what?
Dean B
04-17-1999, 07:47 PM
Graham,
I just set Gossamer Links 2.0 up. Follow the readme although it wasn't one of the clearest I've ever seen. The directory structure is very important. Even though the template dir is located at cgi-bin/glinks/admin/template (in my case), the html files seem to work ok inside this dir because the're only templates and are not actually written to (my guess anyway)
Mines at www.dmcity.com/glinks (http://www.dmcity.com/glinks)
If ya still stuck gimmie a shout.
Dean.
Terra
04-17-1999, 10:27 PM
O.K. I have a question. What file endings can't you have in the cgi-bin? Can you just have .cgi and .pl or what?
You can use whatever file endings you would like... ScriptAlias sees every file as potentially being executable... Just make sure your scripts have the (x) executable mode turned on... The other (non-executable) files should be just libraries or data files...
--
Terra
--Smoking Gun--
FutureQuest
Justin
04-17-1999, 10:41 PM
Dean - the reason the templates can be in the cgi-bin is because they are not being accessed directly. As far as the script is concerned, it is just a data file. It reads in the file, does what it needs to in memory, and spits out the results.
------------------
Justin Nelson
FutureQuest Support
[This message has been edited by Justin (edited 04-17-99).]
Dean B
04-18-1999, 07:15 AM
Well I was close http://www.aota.net/ubb/smile.gif
Dean B
04-18-1999, 10:33 AM
Graham,
As soon as you get it working make sure you stick an .htaccess file to password protect the admin dir. Anyone can figure out the location of admin.cgi from the displayed URL string.
Use Justins .htaccess tutorial at aota. (Nice job M8y http://www.aota.net/ubb/smile.gif)
Dean.
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.