Environment: linux, apache2, php5
Problem: the following error occurs when phpmyadmin is Enabled:
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
The solution is as follows:
Vim/etc/php5/apache2/php. ini
Find the session. save_path and remove the comments of session. save_path =/var/lib/php5.
If not, change the value of session. auto_start to 1 (start). The default value is 0 (disable)
This error is generally caused by the storage path of the session file being writable. in linux, it is generally caused by the permission of the path. In windows, session. save_path must be set to a read/write path, such as D:/tmp.
Articles you may be interested in
- Php prompts PHP Warning: date (): It is not safe to rely on the... solution to the error
- Php prompts Call to undefined function curl_init () Error Solution
- Php prompts Maximum execution time of 30 seconds exceeded... solution to the error
- How to solve the Call to undefined function curl_init error in php running?
- The progress bar of XDebug stops at 57%, prompting you to solve the waiting for XDebug session error.
- PHP reports Fatal error Allowed memory size of... how should we solve the problem of insufficient memory?
- Solution to the error "event is not defined" prompt in Firefox
- Fatal error Class 'soapclient' not found in... troubleshooting method