Suhosin with phpmyadmin issue

paksociety

Verified User
Joined
Jul 11, 2013
Messages
89
HI.
i am using customebuild 2 and i am not using shosin, it is set to off in options.conf and still i am getting this line in phpmyadmin.
How to resolve this?

Code:
Server running with Suhosin. Please refer to documentation for possible issues.

Any hep will be appreciated.

Regards
 
Hello,

What do you see with

Code:
cd /usr/local/directadmin/custombuild
grep suhosin ./options.conf
?

Code:
php -i | grep suhosin
?
 
Code:
grep suhosin ./options.conf
reply is
Code:
suhosin=no
suhosin_php_uploadscan=no

and for
Code:
php -i | grep suhosin
Reply is
Code:
suhosin
suhosin.apc_bug_workaround => Off => Off
suhosin.cookie.checkraddr => 0 => 0
suhosin.cookie.cryptdocroot => On => On
suhosin.cookie.cryptkey => [ protected ] => [ protected ]
suhosin.cookie.cryptlist => no value => no value
suhosin.cookie.cryptraddr => 0 => 0
suhosin.cookie.cryptua => On => On
suhosin.cookie.disallow_nul => 1 => 1
suhosin.cookie.disallow_ws => 1 => 1
suhosin.cookie.encrypt => Off => Off
suhosin.cookie.max_array_depth => 50 => 50
suhosin.cookie.max_array_index_length => 64 => 64
suhosin.cookie.max_name_length => 64 => 64
suhosin.cookie.max_totalname_length => 256 => 256
suhosin.cookie.max_value_length => 10000 => 10000
suhosin.cookie.max_vars => 100 => 100
suhosin.cookie.plainlist => no value => no value
suhosin.coredump => Off => Off
suhosin.disable.display_errors => Off => Off
suhosin.executor.allow_symlink => Off => Off
suhosin.executor.disable_emodifier => Off => Off
suhosin.executor.disable_eval => Off => Off
suhosin.executor.eval.blacklist => no value => no value
suhosin.executor.eval.whitelist => no value => no value
suhosin.executor.func.blacklist => no value => no value
suhosin.executor.func.whitelist => no value => no value
suhosin.executor.include.allow_writable_files => On => On
suhosin.executor.include.blacklist => no value => no value
suhosin.executor.include.max_traversal => 0 => 0
suhosin.executor.include.whitelist => no value => no value
suhosin.executor.max_depth => 0 => 0
suhosin.filter.action => no value => no value
suhosin.get.disallow_nul => 1 => 1
suhosin.get.disallow_ws => 0 => 0
suhosin.get.max_array_depth => 50 => 50
suhosin.get.max_array_index_length => 64 => 64
suhosin.get.max_name_length => 64 => 64
suhosin.get.max_totalname_length => 256 => 256
suhosin.get.max_value_length => 512 => 512
suhosin.get.max_vars => 100 => 100
suhosin.log.file => 0 => 0
suhosin.log.file.name => no value => no value
suhosin.log.phpscript => 0 => 0
suhosin.log.phpscript.is_safe => Off => Off
suhosin.log.phpscript.name => no value => no value
suhosin.log.sapi => 0 => 0
suhosin.log.script => 0 => 0
suhosin.log.script.name => no value => no value
suhosin.log.stdout => 0 => 0
suhosin.log.syslog => no value => no value
suhosin.log.syslog.facility => no value => no value
suhosin.log.syslog.priority => no value => no value
suhosin.log.use-x-forwarded-for => Off => Off
suhosin.mail.protect => 0 => 0
suhosin.memory_limit => 0 => 0
suhosin.mt_srand.ignore => On => On
suhosin.multiheader => Off => Off
suhosin.perdir => 0 => 0
suhosin.post.disallow_nul => 1 => 1
suhosin.post.disallow_ws => 0 => 0
suhosin.post.max_array_depth => 50 => 50
suhosin.post.max_array_index_length => 64 => 64
suhosin.post.max_name_length => 64 => 64
suhosin.post.max_totalname_length => 256 => 256
suhosin.post.max_value_length => 1000000 => 1000000
suhosin.post.max_vars => 1000 => 1000
suhosin.protectkey => On => On
suhosin.rand.reseed_every_request => Off => Off
suhosin.rand.seedingkey => [ protected ] => [ protected ]
suhosin.request.disallow_nul => 1 => 1
suhosin.request.disallow_ws => 0 => 0
suhosin.request.max_array_depth => 50 => 50
suhosin.request.max_array_index_length => 64 => 64
suhosin.request.max_totalname_length => 256 => 256
suhosin.request.max_value_length => 1000000 => 1000000
suhosin.request.max_varname_length => 64 => 64
suhosin.request.max_vars => 1000 => 1000
suhosin.server.encode => On => On
suhosin.server.strip => On => On
suhosin.session.checkraddr => 0 => 0
suhosin.session.cryptdocroot => On => On
suhosin.session.cryptkey => [ protected ] => [ protected ]
suhosin.session.cryptraddr => 0 => 0
suhosin.session.cryptua => Off => Off
suhosin.session.encrypt => Off => Off
suhosin.session.max_id_length => 128 => 128
suhosin.simulation => Off => Off
suhosin.sql.bailout_on_error => Off => Off
suhosin.sql.comment => 0 => 0
suhosin.sql.multiselect => 0 => 0
suhosin.sql.opencomment => 0 => 0
suhosin.sql.union => 0 => 0
suhosin.sql.user_postfix => no value => no value
suhosin.sql.user_prefix => no value => no value
suhosin.srand.ignore => On => On
suhosin.stealth => On => On
suhosin.upload.disallow_binary => 0 => 0
suhosin.upload.disallow_elf => 1 => 1
suhosin.upload.max_uploads => 25 => 25
suhosin.upload.remove_binary => 0 => 0
suhosin.upload.verification_script => no value => no value
 
Please post the output of:
Code:
cat `php --ini | grep 'directadmin.ini' | cut -d: -f2 | cut -d, -f1 | awk '{print $1}'`

grep 'suhosin.so' `php --ini | grep 'php.ini' | cut -d: -f2 | cut -d, -f1 | awk '{print $1}'`
 
Code:
cat `php --ini | grep 'directadmin.ini' | cut -d: -f2 | cut -d, -f1 | awk '{print $1}'`
Output
Code:
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20100525
extension=suhosin.so
suhosin.session.encrypt=Off
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.4.so

Code:
grep 'suhosin.so' `php --ini | grep 'php.ini' | cut -d: -f2 | cut -d, -f1 | awk '{print $1}'`

Output
Nothing Happens

Regards
 
You should remove lines
Code:
extension=suhosin.so
suhosin.session.encrypt=Off

from a file which you see with this:

Code:
php --ini | grep 'directadmin.ini' | cut -d: -f2 | cut -d, -f1 | awk '{print $1}'
 
zEitEr solution would fix your problem. But I'd like to add that setting "suhosin=no" in options.conf doesn't disable it in CustomBuild. For changes like that you need to execute "./build" commands. For example, "./build php n" or "./build all d" would automatically disable suhosin for you. That should be done with every setting. For example, if you change php1_release=5.3 to php1_release=5.4, you must run "./build php n" (or "./build all d") to change the version, for changing mysql=5.1 to mysql=5.5, action like "./build mysql" is required for changes to be applied.
 
Problem solved.
Thanks for answer.
Can you please answer about my nginx cache folder? i started another thread for that.


Regards
 
Back
Top