aptitude install libapache2-mod-php5
aptitude install php5-mysql php5-mysqli
aptitude install php5-mcrypt
aptitude install php5-ldap
apt-get install liblogger-syslog-perl
nano /usr/local/bin/apache_log.pl
#!/usr/bin/perl
use Sys::Syslog qw( :DEFAULT setlogsock );
setlogsock('unix');
openlog('apache', 'cons', 'pid', 'local1');
while ($log = <STDIN>) {
syslog('notice', $log);
}
closelog
chmod a+x /usr/local/bin/apache_log.pl
[...]
ErrorLog syslog:local1
CustomLog |/usr/local/bin/apache_log.pl combined
[...]