Suhosin with phpmyadmin issue

maiijarb

Verified User
Joined
Nov 8, 2006
Messages
65
Hi, i am using customebuild 2 and i am using shosin, when login to phpmyadmin.

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

The default values for most Suhosin configuration options will work in most scenarios, however you might want to adjust at least following parameters:
suhosin.request.max_vars should be increased (eg. 2048)
suhosin.post.max_vars should be increased (eg. 2048)
suhosin.request.max_array_index_length should be increased (eg. 256)
suhosin.post.max_array_index_length should be increased (eg. 256)
suhosin.request.max_totalname_length should be increased (eg. 8192)
suhosin.post.max_totalname_length should be increased (eg. 8192)
suhosin.get.max_value_length should be increased (eg. 1024)
suhosin.sql.bailout_on_error needs to be disabled (the default)
suhosin.log.* should not include SQL, otherwise you get big slowdown

I took a look at /usr/local/lib/php.ini and the settings aren't in there either. I can't find it's configuration file - can anybody throw any light on this?

Thank you.
 
Hi, i am using customebuild 2 and i am using shosin, when login to phpmyadmin.

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

The default values for most Suhosin configuration options will work in most scenarios, however you might want to adjust at least following parameters:
suhosin.request.max_vars should be increased (eg. 2048)
suhosin.post.max_vars should be increased (eg. 2048)
suhosin.request.max_array_index_length should be increased (eg. 256)
suhosin.post.max_array_index_length should be increased (eg. 256)
suhosin.request.max_totalname_length should be increased (eg. 8192)
suhosin.post.max_totalname_length should be increased (eg. 8192)
suhosin.get.max_value_length should be increased (eg. 1024)
suhosin.sql.bailout_on_error needs to be disabled (the default)
suhosin.log.* should not include SQL, otherwise you get big slowdown

I took a look at /usr/local/lib/php.ini and the settings aren't in there either. I can't find it's configuration file - can anybody throw any light on this?

Thank you.

Suhosin parameters are established on the: /usr/local/php5X/lib/php.conf.d/10-directadmin.ini Where "X" is the PHP version you use: php53, php54, php55, php56.

and the configuration file "php.ini" of each php version you have installed is in: "/usr/local/php5X/lib/php.ini", the "/usr/local/lib/php.ini" file is usually a link to the real file path.

I have added these lines in my configuration file for phpmyadmin:

/usr/local/php55/lib/php.conf.d/10-directadmin.ini

Code:
suhosin.request.max_vars=2048
suhosin.post.max_vars=2048
suhosin.request.max_array_index_length=256
suhosin.post.max_array_index_length=256
suhosin.request.max_totalname_length=8192
suhosin.post.max_totalname_length=8192
suhosin.get.max_value_length=1024
suhosin.executor.include.whitelist = phar

But actually you only need to add these recommended lines by phpmyadmin in configuration of php by default if you have two versions of php activated, as it uses by default for "/var/www/html/phpmyadmin", I also believe that you can add these lines in the file "/usr/local/php5X/lib/php.conf.d/50-webapps.ini" if you only want to affect the web applications in "/var/www/html/".

Regards.

P.D. The "suhosin.executor.include.whitelist = phar" line is for Composer.
 
Last edited:
Back
Top