[php-maint] Bug#668597: Bug#668597: php5 creates weird files in /

Ulf Hermann ulfhermann at kulturserver.de
Fri Apr 13 11:20:14 UTC 2012


>
> I don't think the PHP is here at fault. I looks like some script is
> calling php (maybe a cron job?) and redirecting output to a random
> files in root directory.

It has an interesting correlation with logrotate as most (but not all)
of the files were created when apache logs were rotated and the
logrotate script indeed reloads the apache config:

root at devs:~# cat /etc/logrotate.d/apache2
/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                /etc/init.d/apache2 reload > /dev/null
        endscript
}

However, I can't really see why this should spit out random files in / .
All other cron jobs seem unrelated.

Ulf





More information about the pkg-php-maint mailing list