Disable Eaccelerator logging to httpd-error.log on FreeBSD

Wednesday, 15th December 2010

For a couple of weeks I have the eaccelerator Apache caching system on my FreeBSD.
The installation was quite easy actually, all I had to do is install the /usr/ports/www/eaccelerator port and restart Apache.

Now few weeks after I’ve realized my file system is full

There was a couple of reasons for the overfilling of my filesystem but one of the major ones was because my /var/log/httpd-error.log was growing too quickly because eaccelerator was writting debug messages in the log.

I’ve nulled off the httpd-error.log which has already grown to 1G just for about 3 weeks time and also cleaned up some old logs which I haven’t for a year and a half already and now my file system full problem is gone.

However I decided to disable the eaccelerator debug log in order to save some space on my FreeBSD and prevent future file system full problems.

To disable the eaccelerator debugging on FreeBSD I had to do the following:

1. Add to my /usr/local/php5/lib/php.ini just one line of code

freebsd# echo "eaccelerator.debug = 0" >> /usr/local/php5/lib/php.ini

2. Restart the Apache server

freebsd# /usr/local/etc/rc.d/apache2 restart

That’s it now the annoying eaccelerator debug log is disabled and a lot of space which was lost on nothing is saved.

I wonder why the port developed (Ale) has left the default installation port installation to have the debugging enabled. If I have some time I’ll drop him an email to tell him about the issue.

Share this on:

Download PDFDownload PDF

Tags:

2 Responses to “Disable Eaccelerator logging to httpd-error.log on FreeBSD”

  1. Hayden says:
    Google Chrome 24.0.1312.68 Google Chrome 24.0.1312.68 GNU/Linux x64 GNU/Linux x64
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.68 Safari/537.17

    I just had this issues with a client. I found your blog post while looking to see if the issue has been already reported. Will do that now.

    Thanks for posting this, saves me having to blog about it.

    View CommentView Comment

Leave a Reply

CommentLuv badge