Warning: session_start() failed: No such file or directory

前端 未结 4 673
闹比i
闹比i 2020-11-27 21:49

I\'m trying to install berta (v 0.6.3b) and I get this error:

Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_a0d6b84

相关标签:
4条回答
  • 2020-11-27 22:18

    Sessions are saved on the harddisk of your server. Most likely your session save path does not exist. Try setting it to a directory that does exist or that you have read/write rights to.

    0 讨论(0)
  • 2020-11-27 22:20

    Make sure that session directory is writable or you can set a path yourself with:

    session_save_path

    This comment is also useful if you are using above function.

    0 讨论(0)
  • 2020-11-27 22:20

    I think the folder containing the session data cannot be accessed by the PHP process.

    If you have not touched your php.ini, the default session.save_handler should be files (which means that session data will be stored in a folder on your file system). The value of session.save_path contains that folder, you should check that it exists and its permissions for your php process.

    0 讨论(0)
  • 2020-11-27 22:33

    If you're changing the path that is being used for sessions.

    You also might consider, fixing this problem by changing session.save_path variable in your php.ini file.

    Then you'll be fixing in your configuration file and not only in your script.

    0 讨论(0)
提交回复
热议问题