suhosin errors

henryimosey

Aspirant
Joined
Mar 13, 2017
Messages
14
IPB 3.4

Shared Hosting > HostWinds

https://www.spywareinfoforum.com/

In AdminCP there are four suhosin errors - this is one of them
The minimum recommended value for the configuration option 'suhosin.post.max_vars' is 4096, however your value is 1000. Your host will need to change this in the php.ini file.

I want to add these four lines to the php.ini file.
suhosin.post.max_vars = 4096
suhosin.request.max_varname_length= 350
suhosin.request.max_vars = 4096
suhosin.get.max_value_length = 2000

There is a php.ini file in public_html
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)

upload_max_filesize = 64M
suhosin.request.max_vars = 4096

There is also a .htaccess file in public_html

Can I download the php.ini file > add the necessary lines to it > then upload it?
 

henryimosey

Aspirant
Joined
Mar 13, 2017
Messages
14
Your hosting provider should have a FAQ page that will guide you on their recommended way of doing it. Be aware that not ALL settings can be changed on a shared hosting provider and I would strongly suggest that you actually submit a support ticket asking about the above.
Yes well --- our "host" said that they can't fix it because they don't know how. They told us to do it through CPanel.

If I add lines to the ini file > upload it > and it breaks the site > can I fix the site by uploading the original copy of the ini file?
 

.Kyle

Participant
Joined
Feb 22, 2009
Messages
72
Create a php.ini file in your forum directory and add the following values as you have:
Code:
suhosin.post.max_vars = 4096
suhosin.request.max_varname_length= 350
suhosin.request.max_vars = 4096
suhosin.get.max_value_length = 2000
Simply save and it should be fine. I had a problem with suhosin yesterday as I had 3 instances of it in 3 different php.ini files I wasn't aware of so I had to delete the 2 in my hosting account and only update the global php.ini file via WHM -> Software -> MultiPHP INI Editor as my site is on a VPS. You can still use the php.ini file in your forum directory nonetheless.

If your cPanel has a PHP configuration plugin then you can use that to set it instead.
 
Top