Compile and install PHP using Session_Start () times Wrong & workaround

Source: Internet
Author: User

PHP on the system is compiled and installed, in the Session_Start () when the error!


A error message:

Warning:session_start (): Open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed:no such file or directory(2) in/www/tool/classes/service/user.php on line

1
Warning:Unknown:open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed:no such file or Directory (2) in Unknown on line 0

Warning:Unknown:Failed to write session data (files). Please verify this current setting of Session.save_path is correct (/var/lib/php/session) in Unknown on line 0


B View php.ini:

Session.save_path = "/var/lib/php/session"//Session storage Path

So the text above is prompt without the directory


C Solve the problem:

Create the above directory

mkdir session

Chmod-r 777 Session

Run the program again and it's OK.


D See more:

(1)

Pwd
/var/lib/php/session
? Session LS
Sess_qavhhacl7lrdbggauasf1qdlo5

(2)

View Cookies with Firebug:

PHPSESSID qavhhacl7lrdbggauasf1qdlo5//php.ini session.name = Phpsessid


Compile and install PHP using Session_Start () times Wrong & workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.