I’ve encountered a shitty problem while trying to access my phpmyadmin.
Here is the error:
phpMyAdmin - Error "Cannot start session without errors, please check errors given
in your PHP and/or webserver log file and configure your PHP installation properly.
After some time spend in investigation I’ve figured out something wrong is happening with my
php sessions, therefore I had to spend some time assuring myself php sessions are working correctly.
To achieve that I used a php code taken from the Internet.
Here is a link to the PHP code which checks, if sessions are correctly configured on a server .
Executing the code proove my sessions, are working okay, however still the problem remained.
Everytime I tried accessing phpMyAdmin I was unpleasently suprised by by:

After reconsidering the whole situation I remembered that since some time I’m using varnishd
therefore the problem could have something to do with the varnish-cache.
After checking my default.vcl file and recognizing a problem there I had to remove the following piece
of code from the default.vcl file:
#sub vcl_fetch {
# if( req.request != "POST" )
# {
# unset obj.http.set-cookie;
# }
# set obj.ttl = 600s;
# set obj.prefetch = -30s;
# deliver;
#}
Now after restarting varnishd with:
/usr/local/etc/rc.d/varnishd restart
All is back to normal I can login to PhpMyAdmin and everything is fine!
Thanks God.




on
on 
works!
thanks
but where i can find the “php session” ? i mean in which directory i can find it to make a change in it? is it php.ini ?
Hi Lisa,
The problem in my case was not caused by PHP but because of external service I used as a caching server, before requests were handled to Apache. Thus the varnishd (the caching server I used) was actually causing the whole mess because it was not properly passing by the initialized sessions to Apache and therefore the php’s sessioning was not working.
Maybe you have a similar problem as well, if you’re trying the code on your localhost then just consider if you’re using something that might make sessions messed up. If you’re using some kind of external hosting, just make sure their sessioning is working correctly, maybe it’s there fault.
Hope this helps you.
Best!
Georgi
Hi Lisa,
the problem in my case was not caused by PHP but because of external service I used as a caching server, before requests were handled to Apache. Thus the varnishd (the caching server I used) was actually causing the whole mess because it was not properly passing by the initialized sessions to Apache and therefore the php’s sessioning was not working.
Maybe you have a similar problem as well, if you’re trying the code on your localhost then just consider if you’re using something that might make sessions messed up. If you’re using some kind of external hosting, just make sure their sessioning is working correctly, maybe it’s there fault.
Hope this helps you.
Best!
Georgi
i’ve solved it. as i remember..it just because i had to restart xampp from its directory, not from xampp control panel..
,
thanks..
Hi Lisa,
I’m facing the same problem too, here how can we restart the server from its directory?..now im using wamp(not xampp)..any suggestion?
hi..
hmm..in xampp i can restart web service from C:\xampp\xampp_restart, i’m just click on it and the server was restarted. but i’m not sure is wamp has the same feature. how about try to open your wamp folder in C: directory as i’ve done? is there any wamp apps to restart the server? but im sorry before if it doesn’t work, i’m not too sure the cause is a way of restarting the server, but indeed i can remember, i’ve had an error that turns out the reason is I have to restart the server from its directory.
thanks.
Hi,
Ok,i had reinstall wamp n the problem resloved now. Actually i think reinstallation is the last resolution/choice n is not the right waybut have to do that day
. Anyway if it is happen again may be can try the way u advised..thanks alot yaa.
sol:
EMPTY THE CACHE ,COOKIES ETC OF YOUR BROWSER .
That is really interesting, You’re a very professional blogger. I’ve joined your rss feed and look ahead to in search of more of your wonderful post. Also, I have shared your site in my social networks
Can you be more specific about where do go to make the changes. I am not running Xampp. I have apache2, php5 and… installed, any suggestions.
The error above is exactly the some….
Hi what OS are you running your Apache and PHP? If it is;
1. Debian Ubuntu, restart Apache with:
# /etc/init.d/apache2 restart
2. If Fedora, CentOS RHEL:
# /etc/init.d/httpd restart
3. On FreeBSD
# /usr/local/etc/rc.d/apache2 restart
4. Windows
No clue just see where the Apache init script is and invoke it with restart argument
hope this helps.
best
Georgi
Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between superb usability and appearance. I must say that you’ve done a awesome job with this. Additionally, the blog loads super fast for me on Chrome. Excellent Blog!