{"id":1087,"date":"2010-09-20T04:39:03","date_gmt":"2010-09-20T08:39:03","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1087"},"modified":"2013-03-20T08:43:16","modified_gmt":"2013-03-20T12:43:16","slug":"suhosin-post-max_vars-how-to-increase-the-value-of-suhosin-variables","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/suhosin-post-max_vars-how-to-increase-the-value-of-suhosin-variables","title":{"rendered":"suhosin.post.max_vars: How to increase the value of Suhosin variables?"},"content":{"rendered":"<p>On a Suhosin enabled server, <strong>the values of suhosin parameters for example &#8220;suhosin.post.max_vars&#8221; are updated in the PHP configuration file i.e. php.ini.<\/strong> By default, non of the parameter is listed in the php.ini file and you have to mention the parameter and it&#8217;s new value manually.<\/p>\n<p>In order to increase the value of suhosin.post.max_vars from 2000 to 3000, locate the server side php.ini file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># php -i | grep php.ini<\/span><\/pre>\n<\/blockquote>\n<p>and define the parameter and the new value at the end of the file as shown below<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">[suhosin] suhosin.post.max_vars = 3000<\/span><\/pre>\n<\/blockquote>\n<p>The values of other parameters can be updated in the same way, one per line. Save the file and restart the Web server.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># service httpd restart<\/span><\/pre>\n<\/blockquote>\n<p>To verify the new value, you can either execute the command<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># php -i | grep suhosin.post.max_vars<\/span><\/pre>\n<\/blockquote>\n<p>OR create a phpinfo.php file and browse it.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">http:\/\/yourserverip\/phpinfo.php<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>On a Suhosin enabled server, the values of suhosin parameters for example &#8220;suhosin.post.max_vars&#8221; are updated in the PHP configuration file i.e. php.ini. By default, non of the parameter is listed in the php.ini file and you have to mention the parameter and it&#8217;s new value manually.<br \/>\nIn order to increase the value of suhosin.post.max_vars from 2000 to 3000, locate the server side php.ini file<\/p>\n<p># php -i | grep php.ini<\/p>\n<p>and define the parameter and the new value at the end of the file as shown below<\/p>\n<p>[suhosin] suhosin.post.max_vars = 3000<\/p>\n<p>The values [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1074,1076,1073,1079,1078,1080,1077,1075],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1087"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1087"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1087\/revisions"}],"predecessor-version":[{"id":2220,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1087\/revisions\/2220"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}