PHP: How to fix error: session_start(): Failed to read session data


If you see this error:

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)

session_start(): Failed to read session data: files (path: /var/lib/php/session)

php error session

How to fix this error? Simple, you must chmod folder /var/lib/php/session to 777

Recent search terms:

  • lossxjv

Leave a Reply