Unable to create session in case of error check PHP or web server logs and properly configure PHP to install of win+linux
- 2020-05-17 04:54:52
- OfStack
Solutions under windows:
Check whether this directory exists or whether it has write permissions for everyone or Authenticated Users by looking for the session.save_path = "" path for php.ini. Just like 1
Solutions under linux:
Today, an update of PHP was made. As a result, the configured phpmyadmin was logged in. "unable to create a session in the event of an error, please check the PHP or web server logs and properly configure the PHP installation." The error.
Error reason:
php updated, covers the original/var lib/php/session permissions, cause apache users cannot write session, produce the error.
Solutions:
Execution: # chown - R root: username var/lib/php/session
Where username is the host user of apache, mine is apache, so the command to execute is:
#chown -R root:apache /var/lib/php/session
If the error still appears at this point, it is recommended that:
#chmod -R 777 /var/lib/php/session
Afraid that 777 authority is too large, testing 770, 766, 776 can not solve the above problems, we have to give 777 authority.
Do not know if there will be a safety hazard when you are trying to use, please note this location first.
Check whether this directory exists or whether it has write permissions for everyone or Authenticated Users by looking for the session.save_path = "" path for php.ini. Just like 1
Solutions under linux:
Today, an update of PHP was made. As a result, the configured phpmyadmin was logged in. "unable to create a session in the event of an error, please check the PHP or web server logs and properly configure the PHP installation." The error.
Error reason:
php updated, covers the original/var lib/php/session permissions, cause apache users cannot write session, produce the error.
Solutions:
Execution: # chown - R root: username var/lib/php/session
Where username is the host user of apache, mine is apache, so the command to execute is:
#chown -R root:apache /var/lib/php/session
If the error still appears at this point, it is recommended that:
#chmod -R 777 /var/lib/php/session
Afraid that 777 authority is too large, testing 770, 766, 776 can not solve the above problems, we have to give 777 authority.
Do not know if there will be a safety hazard when you are trying to use, please note this location first.