{"id":1331,"date":"2012-04-16T12:10:58","date_gmt":"2012-04-16T10:10:58","guid":{"rendered":"http:\/\/michauko.org\/blog\/?p=1331"},"modified":"2013-08-07T09:51:23","modified_gmt":"2013-08-07T07:51:23","slug":"apache-suhosin-wordpress-et-wp-table-reloaded","status":"publish","type":"post","link":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/","title":{"rendered":"Apache, suhosin, wordpress et WP-Table Reloaded"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif\" alt=\"apache\" width=\"203\" height=\"61\" class=\"alignleft size-full wp-image-1461\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/wordpress.png\" alt=\"wordpress\" width=\"120\" height=\"120\" class=\"alignleft size-full wp-image-1462\" \/><\/p>\n<h2>Le probl\u00e8me<\/h2>\n<p>Hop, un petit aide-m\u00e9moire \u00e0 propos du plugin WP-Table Reloaded pour WordPress sur un serveur avec patch suhosin.<br \/>\nSur des gros tableaux, impossible de faire la moindre mise \u00e0 jour en live du tableau, car le patch suhosin limite (c&rsquo;est son r\u00f4le) la taille de certains formulaires, longueurs de noms de variables etc, ou alors, il tronque certains tableaux.<br \/>\nSeul l&rsquo;import initial se passe bien. Ensuite, c&rsquo;est la gal\u00e8re.<\/p>\n<h2>La solution ?<\/h2>\n<p>Il faut r\u00e9gler suhosin plus finement <!--more-->(et non pas le d\u00e9sactiver comme recommandent beaucoup de personnes pour d\u00e9gager le probl\u00e8me vite fait mal fait).<\/p>\n<p>Pour conna\u00eetre pr\u00e9cis\u00e9ment votre config suhosin sur un site donn\u00e9, vous pouvez utiliser un appel \u00e0 phpinfo() en PHP.<\/p>\n<p>Ensuite, sur un site ayant des tableaux de 1500 lignes, j&rsquo;ai d\u00fb, \u00e0 force d&rsquo;alertes suhosin dans \/var\/log\/user.log, modifier ces valeurs dans mon VirtualHost :<\/p>\n<p><code>        php_value suhosin.post.max_array_index_length 0<br \/>\n        php_value suhosin.get.max_array_index_length 0<br \/>\n        php_value suhosin.request.max_array_index_length 0<br \/>\n        php_value suhosin.post.max_vars 0<br \/>\n        php_value suhosin.get.max_vars 0<br \/>\n        php_value suhosin.request.max_vars 0<br \/>\n        php_value suhosin.post.max_name_length 0<br \/>\n        php_value suhosin.get.max_vars 0<br \/>\n        php_value suhosin.request.max_vars 0<br \/>\n        php_value suhosin.memory_limit 512M<\/code><\/p>\n<p>C&rsquo;est une premi\u00e8re \u00e9tape qui permet de voir si \u00e7a r\u00e8gle bien le probl\u00e8me. Ensuite, il faut affiner pour ne pas tol\u00e9rer de l&rsquo;illimit\u00e9 (0), mais des valeurs r\u00e9alistes.<br \/>\nIl restait un dernier blocage \u00e0 1000 lignes, cette fois la conf de base PHP, j&rsquo;ai modifi\u00e9 ceci puis affin\u00e9 :<br \/>\n<code>        php_value max_input_vars 10000<\/code><\/p>\n<p>Un reload Apache et le tour \u00e9tait jou\u00e9.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le probl\u00e8me Hop, un petit aide-m\u00e9moire \u00e0 propos du plugin WP-Table Reloaded pour WordPress sur un serveur avec patch suhosin. Sur des gros tableaux, impossible de faire la moindre mise \u00e0 jour en live du &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,82,83],"tags":[431,517,230,335],"class_list":["post-1331","post","type-post","status-publish","format-standard","hentry","category-debian","category-pl","category-ubuntu","tag-apache","tag-suhosin","tag-wordpress","tag-wp-table-reloaded"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko\" \/>\n<meta property=\"og:description\" content=\"Le probl\u00e8me Hop, un petit aide-m\u00e9moire \u00e0 propos du plugin WP-Table Reloaded pour WordPress sur un serveur avec patch suhosin. Sur des gros tableaux, impossible de faire la moindre mise \u00e0 jour en live du &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/\" \/>\n<meta property=\"og:site_name\" content=\"Le blog de Michauko\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-16T10:10:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-08-07T07:51:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif\" \/>\n<meta name=\"author\" content=\"michauko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"michauko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/\"},\"author\":{\"name\":\"michauko\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/#\\\/schema\\\/person\\\/0cd9f3d9ce4dccc05df81a5b27051ea9\"},\"headline\":\"Apache, suhosin, wordpress et WP-Table Reloaded\",\"datePublished\":\"2012-04-16T10:10:58+00:00\",\"dateModified\":\"2013-08-07T07:51:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/\"},\"wordCount\":222,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/michauko.org\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/04\\\/apache.gif\",\"keywords\":[\"apache\",\"suhosin\",\"wordpress\",\"wp-table-reloaded\"],\"articleSection\":[\"Debian\",\"planet-libre.org\",\"Ubuntu\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/\",\"url\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/\",\"name\":\"Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/michauko.org\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/04\\\/apache.gif\",\"datePublished\":\"2012-04-16T10:10:58+00:00\",\"dateModified\":\"2013-08-07T07:51:23+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/#\\\/schema\\\/person\\\/0cd9f3d9ce4dccc05df81a5b27051ea9\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#primaryimage\",\"url\":\"https:\\\/\\\/michauko.org\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/04\\\/apache.gif\",\"contentUrl\":\"https:\\\/\\\/michauko.org\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/04\\\/apache.gif\",\"width\":203,\"height\":61},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/michauko.org\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache, suhosin, wordpress et WP-Table Reloaded\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/michauko.org\\\/blog\\\/\",\"name\":\"Le blog de Michauko\",\"description\":\"Si tu ne comprends pas le titre de l&#039;article, passe ton chemin\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/michauko.org\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/michauko.org\\\/blog\\\/#\\\/schema\\\/person\\\/0cd9f3d9ce4dccc05df81a5b27051ea9\",\"name\":\"michauko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g\",\"caption\":\"michauko\"},\"sameAs\":[\"http:\\\/\\\/michauko.org\\\/\"],\"url\":\"https:\\\/\\\/michauko.org\\\/blog\\\/author\\\/randomized2\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/","og_locale":"fr_FR","og_type":"article","og_title":"Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko","og_description":"Le probl\u00e8me Hop, un petit aide-m\u00e9moire \u00e0 propos du plugin WP-Table Reloaded pour WordPress sur un serveur avec patch suhosin. Sur des gros tableaux, impossible de faire la moindre mise \u00e0 jour en live du &hellip;","og_url":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/","og_site_name":"Le blog de Michauko","article_published_time":"2012-04-16T10:10:58+00:00","article_modified_time":"2013-08-07T07:51:23+00:00","og_image":[{"url":"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif","type":"","width":"","height":""}],"author":"michauko","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"michauko","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#article","isPartOf":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/"},"author":{"name":"michauko","@id":"https:\/\/michauko.org\/blog\/#\/schema\/person\/0cd9f3d9ce4dccc05df81a5b27051ea9"},"headline":"Apache, suhosin, wordpress et WP-Table Reloaded","datePublished":"2012-04-16T10:10:58+00:00","dateModified":"2013-08-07T07:51:23+00:00","mainEntityOfPage":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/"},"wordCount":222,"commentCount":1,"image":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#primaryimage"},"thumbnailUrl":"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif","keywords":["apache","suhosin","wordpress","wp-table-reloaded"],"articleSection":["Debian","planet-libre.org","Ubuntu"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/","url":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/","name":"Apache, suhosin, wordpress et WP-Table Reloaded - Le blog de Michauko","isPartOf":{"@id":"https:\/\/michauko.org\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#primaryimage"},"image":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#primaryimage"},"thumbnailUrl":"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif","datePublished":"2012-04-16T10:10:58+00:00","dateModified":"2013-08-07T07:51:23+00:00","author":{"@id":"https:\/\/michauko.org\/blog\/#\/schema\/person\/0cd9f3d9ce4dccc05df81a5b27051ea9"},"breadcrumb":{"@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#primaryimage","url":"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif","contentUrl":"https:\/\/michauko.org\/blog\/wp-content\/uploads\/2012\/04\/apache.gif","width":203,"height":61},{"@type":"BreadcrumbList","@id":"https:\/\/michauko.org\/blog\/apache-suhosin-wordpress-et-wp-table-reloaded-1331\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/michauko.org\/blog\/"},{"@type":"ListItem","position":2,"name":"Apache, suhosin, wordpress et WP-Table Reloaded"}]},{"@type":"WebSite","@id":"https:\/\/michauko.org\/blog\/#website","url":"https:\/\/michauko.org\/blog\/","name":"Le blog de Michauko","description":"Si tu ne comprends pas le titre de l&#039;article, passe ton chemin","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/michauko.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/michauko.org\/blog\/#\/schema\/person\/0cd9f3d9ce4dccc05df81a5b27051ea9","name":"michauko","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c3a8969c185fd0eef3893a15408f3ef1b36a6681a066b1eb32045643c30ba65?s=96&d=mm&r=g","caption":"michauko"},"sameAs":["http:\/\/michauko.org\/"],"url":"https:\/\/michauko.org\/blog\/author\/randomized2\/"}]}},"_links":{"self":[{"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/posts\/1331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/comments?post=1331"}],"version-history":[{"count":6,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/posts\/1331\/revisions"}],"predecessor-version":[{"id":1491,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/posts\/1331\/revisions\/1491"}],"wp:attachment":[{"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/media?parent=1331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/categories?post=1331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michauko.org\/blog\/wp-json\/wp\/v2\/tags?post=1331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}