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] |