Ok guys,
this is what i did. I added a line at the end, print "works"; and then commented everything else out, the script worked. Then i started un-commenting lines.
1: require 5; (worked fine)
2: use strict; (worked fine)
3: use LWP::UserAgent; (500 Error)
I hope this somewhat helps
Thanks again,
Dipul
| [reply] |
| [reply] |
I think thats it.. I cant find any of the modules.. Also, in the var/log/ dir, there are no sub directories, just syslog.1 .2 .3 etc..
Thanks
Dipul
| [reply] |
Hey guys,
I tried everything Mentioned above, still gettin the 500 error. I changed the shebang line to where the perl is located, but still no luck. I went to look for the log, but again, i no luck. I went to /var/log but no apache directory??
Thanks guys
Dipul | [reply] |
Common locations for your apache log-dir are:
- /home/httpd/logs/
- /var/log/httpd/
- /usr/local/apache/logs/
And it wouldn't hurt actually searching for it yourself:
find / -name error_log -print
update
Read jcwren's post below and ye shall learn how to harness the power of Grep, for it is truly powerful!
[ar0n]
| [reply] |
Usually, it's in /var/log, the directory will be called 'httpd', not 'apache'. So check the /var/log/httpd directory.
If it's still not there, find the file called 'httpd.conf' (you may be able to use the locate command to find it. 'locate httpd.conf'), and grep for 'ErrorLog' and 'CustomLog'. These should tell you what directory the logs are placed in.
But as mentioned above, the script, as written, is not meant to be a CGI script, but rather, a command line script. You'll need to add the aforementioned headers, plus possibly some other code, to get it to run as a CGI process.
--Chris
e-mail jcwren
| [reply] |
Thanks again guys for the speedy replies.
Ok, i did everything mentioned above yet i still get errors. I did change the shebang line to the one i used in my other scripts, but still no luck.
I also added the mime line, but again, the 500 error.
Then I tried looking for the error.log, but in the /var/log folder there was no apache folder, and the only logs in there weren't for errors.
Any ideas?
Dipul
PS - I don't know if this helps, but when i went into the dir mentioned in the shebang line, /usr/local/bin/perl , i could get as far as usr/local/bin but there was no perl directory in there, just a perl@?
| [reply] |