Solved [Solved] Apache

Hello All,

I am new to FreeBSD, I am currently in school and we work with this on our server. FreeBSD was already installed and configured on our server, we installed Apache and I had a few questions regarding that and I did not know if this would be the right place for this. Anyways, we have an assignment now and one part is to provide a 'link' for a browser to our error log. First thing I am trying to do is find out how to VIEW my error log. I know where it is, I just don't understand how to view it. I am new and this is probably simple stuff, please bear with me. Thanks!

Josh
 
Re: Apache

Most people would open a terminal (or maybe you're already at a command prompt) and use a pager such as more or less, to name but the two most popular. So the command would be something like more /path/to/wherever/your/Apache/error/log/is and you can usually navigate using the cursor keys. If you're on a graphical system there might also be a more convenient graphical pager available.

Of course, this only helps if the error log is plaintext, but that's usually the case.
 
Re: Apache

Do you mean a browser on the server or a browser from anywhere? The log file isn't viewable from the Internet by default but it should be in /var/log/ and, IIRC, listed as httpd.
 
Re: Apache

Thank you all very much for the replies. I figured it out. I copied httpd-error.log from /var/log/ to /usr/local/www/apache22/data/ and changed the ErrorLog location in httpd.conf. Well, it showed up in my browser but it did not update after each error. And I thought, maybe I should restart because every time I read instructions on editing httpd.conf, it states to restart the server. I restarted and voila! Thanks a lot guys!
 
Back
Top