0

I'm getting this:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

I followed this tutorial to fix the problem:

http://www.electrictoolbox.com/phpmyadmin-cannot-start-session-without-errors/

But I don't actually have a /var/lib/php/session' directory.

(I only have a var/lib/php5 directory)

I get this:

chown: cannot access `/var/lib/php/session': No such file or directory

Any suggestions?

(I didn't touch anything, so I assume an update screwed something).

EDIT:

in var/lib/php

there is a file called: sess_eq4jhtrmumanft46oj7o97phdbtv8bcm

and it has this:

enter image description here

(Sorry, I can't paste the code for some reason).

  • Pl. tell the content of PHP.ini under session.save_path? – Rahul Prasad Jun 17 '11 at 6:25
  • Can you post output of 'ls -l /var/lib/php5'? If you have directory, session inside, you should treat the command as 'chown -R root:alex /var/lib/php5/session' instead of /var/lib/php/session. – Jamess Jun 17 '11 at 8:42
4

create the folder sudo mkdir /var/lib/php/session and give it a sudo chmod 777 /var/lib/php/session privilege (just for testing)

If it start working give it appropriate privilege(using chmod) or change owner (using chown).

| improve this answer | |
  • advising 'chmod 777' without explaining what it will do to the security is an overkill, so not recommended. – Jamess Jun 17 '11 at 8:43
  • 1
    @James: Dude he got more reputation than me, I assumed he understands what 'chmod 777' means. In that case you might be saying why I did not explained 'sudo', cuz even working is root is also dangerous. – Rahul Prasad Jun 19 '11 at 8:06
0

This happens due to the incorrect settings of php session.save_path. Here is a detailed instruction on how to solve this issue:

http://wiki.phpmyadmin.net/pma/session.save_path

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.