I installed a new disk on my computer, previously I had a HDD with Windows 10, now a SDD with Windows 11.
Since I still need PHP 5 for some of my works, I installed XAMPP with this file:
xampp-windows-x64-5.6.40-1-VC11-installer.exe
I installed it on this directory:
C:\xampp-5
After the installation, I edited these files to add the virtual hosts I need:
C:\xampp-5\apache\conf\httpd.conf
C:\xampp-5\apache\conf\extra\httpd-vhosts.conf
I started Xampp Control and then executed Apache and MySQL, and everything seemed to be ok. My site web was working... until I tried to use a login form. After entering user and password the login was not working.
From Xampp Control I opened Apache "error.log" and I found these messages:
- Code: Select all
[Sat Oct 28 18:57:14.157306 2023] [:error] [pid 14808:tid 1912] [client 127.0.0.1:61000] PHP Warning: session_start(): open(/var/cpanel/php/sessions/ea-php55\\sess_e5uk2qaeu9une9tim8asfir305, O_RDWR) failed: No such file or directory (2) in C:\\xampp-5\\htdocs\\prueba\\admin\\users\\login-form.php on line 2, referer: http://prueba.localhost/admin/users/login-form.php
[Sat Oct 28 18:57:14.157306 2023] [:error] [pid 14808:tid 1912] [client 127.0.0.1:61000] PHP Warning: Unknown: open(/var/cpanel/php/sessions/ea-php55\\sess_e5uk2qaeu9une9tim8asfir305, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://prueba.localhost/admin/users/login-form.php
[Sat Oct 28 18:57:14.157306 2023] [:error] [pid 14808:tid 1912] [client 127.0.0.1:61000] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php55) in Unknown on line 0, referer: http://prueba.localhost/admin/users/login-form.php
From Xampp Control I opened "php.ini" and the value of session.save_path is correct:
session.save_path="C:\xampp-5\tmp"
My guess is that somewhere there is some configuration trying to use this non existant directory "/var/cpanel/php/sessions/ea-php55" but I don't know where to look.
Any idea?
Thanks in advance!