Suhosin is not logging any information

paisley

Verified User
Joined
Aug 17, 2013
Messages
63
I have this in 10-directadmin.ini
PHP:
extension=suhosin.so
suhosin.upload.verification_script="/usr/local/bin/php_uploadscan.sh"
suhosin.session.encrypt=Off
suhosin.simulation = 1
suhosin.log.syslog.priority=1
suhosin.log.syslog.facility = 9
suhosin.log.syslog=511
suhosin.log.sapi=1
suhosin.log.file=1
suhosin.simulation = 1
suhosin.log.file.name= /tmp/suhosin-alert.log
suhosin.log.phpscript.name= /tmp/suhosin-alert.log

But i see no logs, also phpinfo shows it is running, also in /var/log/messages nothing to see.

PHP Info:
suhosin.log.file 1 1
suhosin.log.file.name /tmp/suhosin-alert.log /tmp/suhosin-alert.log
suhosin.log.file.time On On
suhosin.log.phpscript 1 1
suhosin.log.phpscript.is_safe Off Off
suhosin.log.phpscript.name /tmp/suhosin-alert.log /tmp/suhosin-alert.log
suhosin.log.sapi 1 1
suhosin.log.script 1 1
suhosin.log.script.name no value no value
suhosin.log.stdout 1 1
suhosin.log.syslog 511 511
suhosin.log.syslog.facility 9 9
suhosin.log.syslog.priority 1 1
suhosin.log.use-x-forwarded-for Off Off

Log file:
-rwxrwxrwx 1 apache apache 0 jul 20 11:59 suhosin-alert.log
 
Last edited:
I am also facing the similar problem.

Does anybody found any solution for this?
Suggestions are appreciated.

I have this in 10-directadmin.ini
PHP:
extension=suhosin.so
suhosin.upload.verification_script="/usr/local/bin/php_uploadscan.sh"
suhosin.session.encrypt=Off
suhosin.simulation = 1
suhosin.log.syslog.priority=1
suhosin.log.syslog.facility = 9
suhosin.log.syslog=511
suhosin.log.sapi=1
suhosin.log.file=1
suhosin.simulation = 1
suhosin.log.file.name= /tmp/suhosin-alert.log
suhosin.log.phpscript.name= /tmp/suhosin-alert.log

But i see no logs, also phpinfo shows it is running, also in /var/log/messages nothing to see.

PHP Info:


Log file:
 
If you're using Debian 8 or CentOS 7, Apache has a PrivateTmp set in systemd file. That's why you don't see any logs in /tmp/. If you're not using an OS having systemd - please let me know.
 
Back
Top