POST, REQUEST info truncated in PHP / cPanel

Here it goes, the first post for this category.

The Problem: when sending POST / REQUEST data using a form the ifnormation gets truncated. Missing. Sometimes the page goes blank. You can tell by the data that passes that not all information was passed.

The Cause: this has to do with SUHOSIN, a security hardening project that runs with PHP. In cPanel the options are by default, but you can specify individual settings by adding some lines to your  php.ini.

The Solution: add these lines in your php.ini


suhosin.request.max_vars = 4096
suhosin.post.max_vars = 4096

Notes: if you need more adjustments here is the page for the project with all the configuration options for Suhosin.

Compartir / Share