Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/test/www/api/index.php:1) in /home/test/www/api/index.php on line 3
I can not find the problem here, as there is no whitespace before <?php
and session_start();
is the first thing called:
index.php:
<?php
session_start();
// more code here
Don't think there should be a problem here, but just in case:
.htaccess in /api:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Running this in a vagrant development environment we have had no problems, but this problem occured the second we started to run it in a CentOS cPanel environment with Apache 2.2 and PHP 5.5. We have had a few other issues with what seems to be cPanel's quirks, but this one I cant figure out.
Anyone have an idea for what could be the problem, how we could debug this or how we could find a solution?