2

I am using Ubuntu and I can't open phpmyadmin, when I visit it on localhost, it displays an error

[1] when I try running

sudo chmod 777 to /var/lib/php/session

OR

chown -R root:root /var/lib/php/session

it outputs

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

How to solve this issue?

1
  • Is it as simple as the difference between session and sessions in the directory structure you're modifying vs the configuration file's expected path? It's either a bad copy and paste or a simple problem to fix. Commented Mar 27, 2020 at 20:57

2 Answers 2

0
  1. Check your php.ini file and look for session.save_path = "/var/lib/php/session" it has to be there.

  2. make sure the path exists.

  3. Try clearing your browser's cache and cookies

Sign up to request clarification or add additional context in comments.

4 Comments

thanks for helping me, I did check the save path it has a semicolon before it, so I remove it and it was "/var/lib/php/sessions" and I changed it to what you wrote and I've clear the cache and changed to another browser, but it still the same error.
any other suggestions?
can you now change the file permission tho?
yes it did change the file permission. and it is now working. Thanks very much @Karl
0

The same problem with me, check out the session path in your php project configuration file:

php_value[session.save_path] = /var/lib/php/sessions

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.