create sql-error.log file for database errors so support/debugging will be easier

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
fixes for php-5.4 (strict standard)

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
remove build-in logrotate feature and provide logrotate-script

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>