Friday, May 25, 2012

PHPMyAdmin: Cannot start session without errors

sometimes we found this error when logging into PHP MyAdmin:
"Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."


this because the sessions folder has been removed or restricted, do this steps:
1. check whether the folder /var/lib/php/sessions exists
2. if exists, then you need to run sudo chmod 0777 /var/lib/php/sessions from terminal
3. if the folder doesn't exist, then you need to create the folder manually:
    - cd /var/lib
    - sudo mkdir php
    - sudo chmod 0777 php
    - sudo mkdir sessions
    - sudo chmod 0777 sessions


then try to login via PHP MyAdmin again

No comments:

Post a Comment