{"id":213,"date":"2008-09-20T00:22:45","date_gmt":"2008-09-19T22:22:45","guid":{"rendered":"http:\/\/www.thomaskeller.biz\/blog\/?p=213"},"modified":"2009-11-06T10:33:24","modified_gmt":"2009-11-06T09:33:24","slug":"_post-empty","status":"publish","type":"post","link":"https:\/\/www.thomaskeller.biz\/blog\/2008\/09\/20\/_post-empty\/","title":{"rendered":"$_POST empty?!"},"content":{"rendered":"<p>So I was about to SSL-secure my <a href=\"http:\/\/roundcube.net\">new webmail setup<\/a>, created a new cert on <a href=\"http:\/\/cacert.org\">CAcert<\/a>, installed it, configured my vhost accordingly, went to the webmail login page and&#8230; boom. Login was not possible. No error message, no log message, nothing.<\/p>\n<p>What happened?<\/p>\n<p>To make a long story short, the PHP superglobal <code>$_POST<\/code> which stores data from POST requests was completly empty, though a valid POST request has been triggered. Not even <code>$HTTP_RAW_POST_DATA<\/code> was set and a <a href=\"http:\/\/www.bradino.com\/php\/empty-post-array\/\">hint I found on the net<\/a> about a not set content-type didn&#8217;t help either.<\/p>\n<p>So I went back to my vhost configuration again, where I configured a simple redirect for the *:80 vhost to the *:443 vhost. I copied over my original configuration (PHP FCGI) from the SSL one over to the non-ssl one to check if the problem also persists on non-SSL connections. And apparently it did not! Weird enough, now it even worked when doing the request over SSL&#8230;! Even weirder was, as soon as I commented out certain (uneccessary) options like ErrorLog from the SSL one, it broke again&#8230;<\/p>\n<p>Something must have been messed with my FastCGI php processes &#8211; since I only did a reload after each configuration change before, I decided to make a hard apache restart &#8211; and voila! The problem was gone completly!<\/p>\n<p>Hrm&#8230; this reminds me that there was this one operating system which could also be fixed by a restart. If I could only remember its name&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I was about to SSL-secure my new webmail setup, created a new cert on CAcert, installed it, configured my vhost accordingly, went to the webmail login page and&#8230; boom. Login was not possible. No error message, no log message, nothing. What happened? To make a long story short, the PHP superglobal $_POST which stores &hellip; <a href=\"https:\/\/www.thomaskeller.biz\/blog\/2008\/09\/20\/_post-empty\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">$_POST empty?!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,25],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-debian-ubuntu-administration","category-tips"],"_links":{"self":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":5,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions\/461"}],"wp:attachment":[{"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thomaskeller.biz\/blog\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}