phpMyAdmin “Cannot start session without errors” [Solved]
Sometimes phpMyAdmin shows the error message “Cannot start session without errors”. The problem can be due to file and folder permissions. We can easily solve this issue. Let’s see the solutions:
Sol 1: Set Full Permissions
It’s a very easy method to solve this error. This will set full read/write permissions on the PHP sessions folder.
sudo chmod 777 /var/lib/php/session
This command will solve this issue for most of the servers.
Sol 2: Set Permissions to Specefic User
To ensure the security, we can follow this method. If you want to provide permissions to a specific user, then just run this command:
sudo chown user:group /var/lib/php/session
To force refresh the phpMyAdmin page, you can run this command:
sudo chown -R user:group /var/lib/php/session
Please replace user:group with your user and group. Such as nginx:nginx, apache:apache, root:root, centos:centos etc.
Sol 3: Notes
php/sessionfolder may be in a different location on some servers. To get the session path, check your
sessiondirectory not found in your server, you can try by creating the session folder. By typing this command
sudo mkdir /var/lib/php/sessionyou can create the dir. Then you can set permissions.
Thanks for reading. I hope this solution may help you. ?
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***