Get the App
SLTechnology News&Howtos  ›  Development  › 

What if php cannot fetch session under linux

Shulou Source: shulou.com Published: 2022-06-03 10:51:42 11月15日 Update

This article mainly introduces the linux php can not get the session how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

The solution that php can not get session under linux: 1, find and open php.ini file; 2, modify "session.save_path" to "session.save_path =" / usr/local/php/tmp/session/ "".

This article operating environment: linux5.9.8 system, PHP7.1 version, Dell G3 computer.

Php cannot get session under linux

Modify php.ini

Vim / usr/local/php/etc/php.ini

Change the session.save_path to the path after session.save_path = "/ usr/local/php/tmp/session/" and set it yourself.

Then set the following path user group to your own corresponding user group.

Thank you for reading this article carefully. I hope the article "what to do if php can not get session under linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles how to do users user groups paths values interests methods at the same time documents more friends environment computers knowledge systems editing industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Shulou Technology Shulou Information macOS