Posts Tagged ‘Disable Eaccelerator logging to httpd-error.log on FreeBSD’

Disable Eaccelerator logging to httpd-error.log on FreeBSD

Wednesday, December 15th, 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.