Image upload not working - session problem

When uploading image, Sitecake throws an error. This happens on all sites using sitecake on the same server.
Also, this happens on a blank installation with only one index.html to edit.

Here is my stack trace.

[2016-12-08 08:01:10] Error: [RuntimeException] Failed to start the session because headers have already been sent by "" at line 0. Stack Trace: #0 /var/www/sitecake/2.3.6/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(258): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() #1 /var/www/sitecake/2.3.6/vendor/symfony/http-foundation/Session/Session.php(79): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes') #2 /var/www/sitecake/2.3.6/src/Sitecake/SessionManager.php(59): Symfony\Component\HttpFoundation\Session\Session->has('loggedin') #3 /var/www/sitecake/2.3.6/src/Sitecake/Dispatcher.php(68): Sitecake\SessionManager->isLoggedIn() #4 /var/www/sitecake/2.3.6/src/Sitecake/Dispatcher.php(43): Sitecake\Dispatcher->execute(Object(Sitecake\Services\Image\ImageService), 'upload', Object(Symfony\Component\HttpFoundation\Request)) #5 /var/www/sitecake/2.3.6/src/app.php(16): Sitecake\Dispatcher->dispatch(Object(Symfony\Component\HttpFoundation\Request)) #6 [internal function]: {closure}(Object(Silex\Application), Object(Symfony\Component\HttpFoundation\Request)) #7 /var/www/sitecake/2.3.6/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #8 /var/www/sitecake/2.3.6/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #9 /var/www/sitecake/2.3.6/vendor/silex/silex/src/Silex/Application.php(496): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /var/www/sitecake/2.3.6/vendor/silex/silex/src/Silex/Application.php(477): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request)) #11 /var/www/sitecake/2.3.6/src/app.php(43): Silex\Application->run() #12 {main}

Here is my config:
http://linkensphere.com/phpinfo.php

Hi, as I can see from console error that is appearing is
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.

It seems that problem is appearing regardless of $HTTP_RAW_POST_DATA is actually beibg set (which sitecake don’t do). You should set always_populate_raw_post_data = -1 in your php.ini.